GLBasic User Manual

Main sections

UNTIL

REPEAT
[code]
UNTIL expression


Repeats the [code] block until the "expression" at the end of the loop evaluates to false (=0).

LOCAL a = 0
REPEAT
INC a
UNTIL a>5
STDOUT "a:" + a+"\n" // output = "6"

See also...