WHILE
Loop:
WHILE
loop executes as long as a given test
condition is true.
WHILE <test condition> ... ENDWHILEFor example:
res index 1 res count 10 WHILE index LT count say "index is ^index" calc index index+1 ENDWHILE
WHILE
allows the same tests
that are used in IF
WHILE
explain file for more details.