If : Else : EndIf
DescriptionIf <expression> ... [ElseIf <expression>] ... [Else] ... EndIf
The If structure is used to achieve tests, and/or change the programmes direction, if the test is true or false. ElseIf can be used to do any number of additionnal test if the previous one was not true. The Else optional command is used to execute a part of code, if all previous tests were false. Any number of If structures can be nested together.Example:
If a=10 PrintN("a=10") Else PrintN("a<>10") EndIfExample:
If a=10 And b>=10 Or c=20 If b=15 PrintN("b=15") Else PrintN("Other possibility") EndIf Else PrintN("Test failure") EndIf