Here is an example of a "while" loop:
[i < 100] whileTrue: [
sum := sum + i.
i := i + 1
]
The conditional expression must be in brackets here (unlike "if") for the reason that it must be re- evaluated each time around the loop. We'll defer an explanation, until we discuss "blocks" in more detail.