Ce mot-clé est utilisé dans la structure de contrôle Repeat qui est similaire aux boucles While ou For.
Syntax:
repeat
<statement block>
until <condition>;
<statement block>: Une unique instruction Pascal ou un bloc d'instruction begin-end.
<condition>: Expression qui retourne une valeur booléenne.
Exemple:
x := 1;
repeat
begin
DoSomethingHere(x);
x := x + 1;
end;
until x = 10;
Mots-clés: begin — do — else — end — for — if — repeat — then — until — while