WHILE
The WHILE statement executes a block of statements while a condition that you
specify by a 4GL Boolean expression is TRUE.
statement is an SQL statement or other 4GL statement.
If the 4GL Boolean expression is TRUE, then 4GL executes the statements that
follow the expression, until it encounters the END WHILE keywords. Then it
re-evaluates the 4GL Boolean expression.
If the Boolean expression is FALSE, 4GL terminates the loop and resumes
execution after the END WHILE keywords. If the Boolean expression is already FALSE on
entry to the WHILE statement, then program control passes directly to the
statement immediately following the END WHILE keywords.
References
CONTINUE
END
EXIT
FOR
FOREACH