Until/fr: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | Ce [[Keyword/fr|mot-clé]] est utilisé dans la structure de contrôle [[Repeat/fr|Repeat]] qui est similaire aux boucles [[While/fr|While]] ou [[For/fr|For]]. | |
| 2 | 2 | ||
| 3 | 3 | Syntax: | |
| 4 | 4 | ||
| 5 | - | ||
| 6 | - | ||
| 7 | - | ||
| 5 | + | ```text | |
| 6 | + | repeat | |
| 7 | + | <statement block> | |
| 8 | + | until <condition>; | |
| 9 | + | ``` | |
| 8 | 10 | ||
| 9 | 11 | \<statement block\>: Une unique instruction Pascal ou un bloc d'instruction begin-end. | |
| 10 | 12 | ||
| 11 | 13 | \<condition\>: Expression qui retourne une valeur booléenne. | |
| 12 | 14 | ||
| 13 | 15 | Exemple: | |
| 14 | 16 | ||
| 15 | - | ||
| 16 | - | ||
| 17 | - | ||
| 18 | - | ||
| 19 | - | ||
| 20 | - | ||
| 21 | - | ||
| 17 | + | ``` pascal | |
| 18 | + | x := 1; | |
| 19 | + | repeat | |
| 20 | + | begin | |
| 21 | + | DoSomethingHere(x); | |
| 22 | + | x := x + 1; | |
| 23 | + | end; | |
| 24 | + | until x = 10; | |
| 25 | + | ``` | |
| 22 | 26 | ||
| 23 | 27 | --- | |
| 24 | 28 | *From the Free Pascal wiki, page "Until/fr", as it stood on 2016-11-15 after a change by E-ric, 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).* |
