"Until" loop

until condition [instructions]

Repeat instructions in the list until the contition is met. If the condition is true before starting the loop then instructions are never executed.

Example:

make "x 5
until :x = 1 [
  print :x
  make "x :x - 1
]

Output:

5
4
3
2

See also:

Loop statements

Table of Content