The general form of the DO UNTIL statement is as follows:
DO UNTIL expression;
The UNTIL clause is like the WHILE clause except that the expression is evaluated at the bottom of the loop. This means that the loop always executes at least once.
For example, the following statements initialize count
to 1 and then increment count
five times:
count = 1; do until(count>5); count = count+1; end;