Repeat

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

Undo revision 140565 by [[Special:Contributions/Rfc1394|Rfc1394]] ([[User talk:Rfc1394|talk]]): ensure reserved words a set in boldface

This reserved word is used in a control construct that is similar to a while 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