REPEAT Statement

General Form

REPEAT
    statement-block
UNTIL expression;
 

A statement-block is zero or more statements.  Variables can be declared here, and will go out of scope when the statement-block is exited.

Note, this construct uses fully bracketed syntax.

Examples

repeat
    i := i + 1;
until i >= 10;
 
repeat
    print "i=" + i;
    i := i + 1;
until i >= 10