Sign in Join
Wiki copytemporary

Break/fr: what changed

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

Title: Break/fr

OldNewLine
1+Le mot réservé **break** est l'une des commandes de boucle, utilisée pour sortir d'une boucle prématurément.\
2+La 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+\
4+Exemple:\
5+
6+``` pascal
7+var
8+ intI: Integer;
9+ intA: Integer = 50;
10+begin
11+ for intI := 20 to 200 do
12+ begin
13+ ...
14+ if intI = intA then break; // Si la condition est vérifiée, la boucle se termine
15+ ...
16+ end;
17+end;
18+```
19+
20+## Voir aussi
21+
22+- [[Reserved words/fr|mots réservés]]
23+
24+\
25+
26+---
27+*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