Sign in Join
Wiki copytemporary

Until/fr: what changed

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

OldNewLine
11Ce [[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]].
22
33Syntax:
44
5-` `**`repeat`**\
6-` `**`<statement block>`**\
7-` `**`until <condition>;`**
5+```text
6+ repeat
7+ <statement block>
8+ until <condition>;
9+```
810
911\<statement block\>: Une unique instruction Pascal ou un bloc d'instruction begin-end.
1012
1113\<condition\>: Expression qui retourne une valeur booléenne.
1214
1315Exemple:
1416
15-` `**`x := 1;`**\
16-` `**`repeat`**\
17-` `**`begin`**\
18-` `**`DoSomethingHere(x);`**\
19-` `**`x := x + 1;`**\
20-` `**`end;`**\
21-` `**`until x = 10;`**
17+``` pascal
18+ x := 1;
19+ repeat
20+ begin
21+ DoSomethingHere(x);
22+ x := x + 1;
23+ end;
24+ until x = 10;
25+```
2226
2327---
2428*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).*

Back to history