Sign in Join
Wiki copytemporary

Break/fr: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11Le mot réservé **break** est l'une des commandes de boucle, utilisée pour sortir d'une boucle prématurément.\
22La commande **break** ne peut être employée qu'à l'intérieur d'une boucle et s'applique à la boucle englobante la plus imbriquée le cas échéant.\
3-\
3+
44Exemple:\
55
66``` pascal
77var
88 intI: Integer;
99 intA: Integer = 50;
1010begin
1111 for intI := 20 to 200 do
1212 begin
1313 ...
1414 if intI = intA then break; // Si la condition est vérifiée, la boucle se termine
1515 ...
1616 end;
1717end;
1818```
1919
2020## Voir aussi
2121
2222- [[Reserved words/fr|mots réservés]]
23-
24-\
2523
2624---
2725*From the Free Pascal wiki, page "Break/fr", as it stood on 2020-01-17 after a change by Bart, out of the wiki's dump of 2024-05-26. 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](/wiki-contact).*

Back to history