Rename to Nim
This commit is contained in:
parent
cfdc471535
commit
2bd2af6e1c
25 changed files with 64 additions and 64 deletions
|
|
@ -4,13 +4,13 @@ title: If, Else, While
|
|||
|
||||
# If, Else, While
|
||||
|
||||
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`.
|
||||
Nim has many different control flow constructs, including the standard `if`s, `else`s, and `while`s. However, Nim 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.
|
||||
|
||||
Along with [its other uses](/block/), the `block` statement can be used to create a label so that it's possible to break out of nested loops.
|
||||
|
||||
<!--skip-->``` nimrod
|
||||
<!--skip-->``` nim
|
||||
import strutils, math
|
||||
|
||||
randomize()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue