|
If <expression> ... [Else]...[ElseIf <expression>]...EndIf |
|
|
If is used to test an expression, if the test is false then the rest of the script is skipped until an Else, an ElseIf or an EndIf. The optional Else statement is used to execute script if the previous expression was false. ElseIf extends the Else statement to only execute script if the previous expression is false, but the new expression is true. You can nest If statement stuctures.
Example:
If x > 5
|