Sign in Join
Wiki copytemporary

IF/fr: what changed

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

Title: If/fr

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]].
2+
3+## If then
4+```
5+if condition
6+ then true_statement
7+ else false_statement;
8+```
9+
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+
12+### Plus d'instructions dans l'instruction "if then"
13+
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;
22+```
23+
24+## Documentation
25+
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]]
30+
31+---
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).*

Back to history