Documentation

#UNTIL

UNTIL

Syntax: #UNTIL (expression) {commands}

Execute the given commands until the expression evaluates to TRUE (non-zero). The expression is evaluated after each complete cycle through the commands, so the commands are always executed once.

UNTIL example

#VAR A 10
#UNTIL (@A = 0) {#SHOW @A;#ADD A -1}
Displays a countdown from 10 down to 1. When @A becomes 0, the loop stops.

Add comment

Login or register to post comments