[DO] WHILE condition
[statement block]
LOOP
DO
[statement block]
[LOOP] UNTIL condition
DO
[statement block]
LOOP
Repeats a block of statements until/while the condition is met. The three above syntaxes show
the different types. The DO .. LOOP without a WHILE or UNTIL will
loop forever, unless an EXIT statement is executed.
An EXIT is the proper way to leave a DO...LOOP, you can also use a GOTO or RETURN statement.