Repeat/fi

Varattua sanaa repeat käytetään ohjausrakenteessa, joka on samankaltainen kuin while do silmukan.

Syntaksi

edit
  repeat
    <lauselohko>
  until <ehto>;

Esimerkki

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

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