The syntax of the WHILE statement is:
WHILE (expression)
DO
statements
ENDWHILE
For details about expressions, see Expressions in ASCII state table statements. Compound expressions are not supported in WHILE statements.