While
While>condition
Use in conjunction with EndWhile to create a loop. The code between While and EndWhile will repeat while condition is true.
Note that the condition is evaluated at the start of the loop and therefore at the start of each iteration.
While can take one of the following simple expressions:
variable,value |
for backward compatibility. Same as variable=value |
variable=value |
Until variable equals the value specified |
variable>value |
Until variable is greater than the value specified |
variable<value |
Until variable is less than the value specified |
variable<>value |
Until variable does not equal the value specified |
Alternatively While can take a full complex expression (specified between curly braces).
Example
Let>x=0
While>x<10
Let>x=x+1
MessageModal>x
EndWhile