Browse Source

docs: document control flow

github-actions
Garrit Franke 3 years ago
parent
commit
291ed493b6
  1. 4
      docs/concepts/control-flow.md

4
docs/concepts/control-flow.md

@ -74,3 +74,7 @@ number is divisible by 3
```
When this program executes, it checks each `if` expression in turn and executes the first body for which the condition holds true. Note that even though 6 is divisible by 2, we don’t see the output `number is divisible by 2`, nor do we see the `number is not divisible by 4, 3, or 2` text from the else block. That’s because Sabre only executes the block for the first true condition, and once it finds one, it doesn’t even check the rest.
## Loops
TODO

Loading…
Cancel
Save