Minor fixes
This commit is contained in:
parent
8397eac55b
commit
0ec510af11
7 changed files with 21 additions and 20 deletions
|
|
@ -4,7 +4,7 @@ title: If, Else, While
|
|||
|
||||
# If, Else, While
|
||||
|
||||
Nimrod many different control flow constructs, including the standard `if`s, `else`s, and `while`s. However, Nimrod does not use an `else if` construct like many languages, it uses a more condensed `elif`.
|
||||
Nimrod has many different control flow constructs, including the standard `if`s, `else`s, and `while`s. However, Nimrod does not use an `else if` construct like many languages, it uses a more condensed `elif`.
|
||||
|
||||
When inside a loop, `continue` can be used to skip the rest of the loop body and to begin the next iteration; `break` can be used to immediately leave the loop body.
|
||||
|
||||
|
|
@ -31,4 +31,4 @@ block busyloops:
|
|||
while true:
|
||||
while true:
|
||||
break busyloops
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue