Syntax: #WH (expression) {commands}

Execute the given commands as long as the expression evaluates to TRUE (non-zero). The expression is evaluated prior to executing any of the commands, and then again after each complete cycle through the commands.

WHILE example

#VAR A 10
#WHILE (@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