Sign in Join
Wiki copytemporary

IF/fr: what changed

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

OldNewLine
1-Ce [[Keyword/fr|mot-clé]] précède une condition, et doit être suivi par [[Then/fr|then]] et éventuellement par [[Else/fr|else]].
1+Ce [[Keyword/fr|mot-clé]] précède une condition, et doit être suivi par [[Then/fr|then]] et éventuellement par [[Else/fr|else]].
22
33## If then
4-```
5-if condition
6- then true_statement
7- else false_statement;
4+
5+``` pascal
6+ if condition
7+ then true_statement
8+ else false_statement;
89```
910
10-_Condition_ est une expression [[Boolean/fr|Boolean]] évaluée à [[True/fr|true]] or [[False/fr|false]]. _true_statement_ est exécuté si _condition_ est évaluée à True. _false_statement_ est exécuté si _condition_ est évaluée à False. Une erreur de compilation survient si la condition ne donne pas une valeur booléenne.
11+*Condition* est une expression [[Boolean/fr|Boolean]] évaluée à [[True/fr|true]] or [[False/fr|false]]. *true_statement* est exécuté si *condition* est évaluée à True. *false_statement* est exécuté si *condition* est évaluée à False. Une erreur de compilation survient si la condition ne donne pas une valeur booléenne.
1112
1213### Plus d'instructions dans l'instruction "if then"
1314
14-Si vous avez besoin de plus d'une instruction pour true_statement ou false_statement, placez-les dans un [bloc](</index.php?title=Block/fr&action=edit&redlink=1> "Block/fr \(page does not exist\)") [[Begin/fr|begin]] ... [[End/fr|end]].
15-```
16-if boolean_condition then
17- begin
18- statement_one;
19- statement_two;
20- statement_three;
21- end;
15+Si vous avez besoin de plus d'une instruction pour true_statement ou false_statement, placez-les dans un [[Block/fr|bloc]] [[Begin/fr|begin]] ... [[End/fr|end]].
16+
17+``` pascal
18+ if boolean_condition then
19+ begin
20+ statement_one;
21+ statement_two;
22+ statement_three;
23+ end;
2224```
2325
2426## Documentation
2527
26-Documentation officielle : [[1]](<http://www.freepascal.org/docs-html/ref/refsu58.html#x163-18500013.2.3>)
27-
28-
29-**Mots-clés:** [[Begin/fr|begin]] — [[Do/fr|do]] — [[Else/fr|else]] — [[End/fr|end]] — [[For/fr|for]] — if — [[Repeat/fr|repeat]] — [[Then/fr|then]] — [[Until/fr|until]] — [[While/fr|while]]
28+Documentation officielle : [1](http://www.freepascal.org/docs-html/ref/refsu58.html#x163-18500013.2.3)
3029
3130---
32-*From the Free Pascal wiki, page "If/fr", as the Internet Archive kept it on 2025-02-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](/wiki-contact).*
31+*From the Free Pascal wiki, page "If/fr", as it stood on 2020-02-17 after a change by Trev, 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