From 291ed493b62067604a9b2c466abf79dba9e1a93d Mon Sep 17 00:00:00 2001 From: Garrit Franke Date: Mon, 8 Feb 2021 17:51:18 +0100 Subject: [PATCH] docs: document control flow --- docs/concepts/control-flow.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/concepts/control-flow.md b/docs/concepts/control-flow.md index 6148273..665bf35 100644 --- a/docs/concepts/control-flow.md +++ b/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