Repeat

This is an old revision of Repeat, edited by Rfc1394 at . The current revision is 46380.

clean up syntax

The reserved word repeat is used as a loop instruction where the test occurs after the loop is executed. It is a control construct that is similar to a {{HL|while}}-{{HL|do}} loop.

Syntax

  repeat
    <statement block>
  until <condition>;

Example

  x := 1;
  repeat
    DoSomethingHere(x);
    x := x + 1;
  until x = 10;

Keywords: begin — do — else — end — for — if — repeat — then — until — while