Next: , Previous: while Statement, Up: Statements



6.1.7.7 repeat Statement

     repeat
       statement;
       ...
       statement;
     until boolean_expression

The repeat ... until statement declares a loop which is repeated until boolean_expression is true. Since the terminating condition is checked after execution of the loop body, the statement sequence is executed at least once.

See also

while Statement, for Statement