Aide:IfElseEndIf.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Keyword###
If...ElseIf...Else...EndIf
###Description###
Conditionally run statements.
###Syntax###
<b>If</b> <expression> <b>Then</b>
<i>statements</i>
...
[<b>ElseIf</b> expression-n <b>Then</b>
<i>[elseif statements ... ]]</i>
...
[<b>Else</b>
<i>[else statements]</i>
...
<b>EndIf</b>
###Parameters###
@@ParamTable@@
expression
If the expression is true, the first statement block is executed. If not, the first true ElseIf block is executed. Otherwise, the "Else" block is executed.
@@End@@
###Remarks###
If statements may be nested.
The <i>expression</i> can contain the boolean operators of AND, OR, and NOT as well as the logical operators <, <=, >, >=, =, ==, and <> grouped with parentheses as needed.
###Related###
<a href="If.htm">If...Then</a>, <a href="Select.htm">Select...Case...EndSelect</a>, <a href="Switch.htm">Switch...EndSwitch</a>
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
###Keyword###
If...ElseIf...Else...EndIf
###Description###
Exécute conditionnellement des déclarations.
###Syntax###
<b>If</b> <expression> <b>Then</b>
<i>déclaration</i>
...
[<b>ElseIf</b> expression-n <b>Then</b>
<i>[elseif déclaration ... ]]</i>
...
[<b>Else</b>
<i>[else déclaration]</i>
...
<b>EndIf</b>
###Parameters###
@@ParamTable@@
expression
Si l'expression est vraie, le premier groupe de déclarations est exécuté. Dans le cas contraire, le premier groupe ElseIf vrai est exécuté. Sinon, le groupe "Else" est exécuté.
@@End@@
###Remarks###
Les déclarations If peuvent être imbriquées.
L'<i>expression</i> peut contenir les opérateurs booléens AND, OR et NOT tout comme les opérateurs logiques <, <=, >, >=, =, ==, et <> groupés avec des parenthèses si besoin.
###Related###
<a href="If.htm">If...Then</a>, <a href="Select.htm">Select...Case...EndSelect</a>, <a href="Switch.htm">Switch...EndSwitch</a>
###Example###
@@IncludeExample@@
Traducteur : jbnh
Contributeurs (pour les modifications avant le Wiki) :