Revision 2 of 2, by Kai Burghardt on 9-5-2020. The page as it is now.
Repeat/fr
Ce mot-clé est utilisé pour une construction itérative semblable à la boucle while do.
Syntax:
repeat
<statement block>
until <condition>;<statement block>: Une instruction simple ou une suite d'instructions, les begin-end sont inutiles car les instructions sont déjà délimitées par repeat et until.
<condition>: condition de terminaison de la boucle.
Exemple:
x := 1;
repeat
DoSomethingHere(x);
x := x + 1;
until x = 10Elle diffère sur deux points d'avec la boucle while:
- la condition est évaluée après les instructions qui sont donc exécutées au moins une fois
- la boucle prend fin lorsque la condition est vérifiée (on parle de condition de terminaison)
Mots-clés: begin — do — else — end — for — if — repeat — then — until — while
From the Free Pascal wiki, page "Repeat/fr", as the Internet Archive kept it on 2025-01-18, last changed on 2020-09-06. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
