Conditionally run a single statement.
If <expression> Then statement
expression | If the expression is true, the statement is executed. |
This version of the If statement is used to execute a single statement without the overhead of an EndIf.
The expression can contain the boolean operators of And, Or, and Not as well as the logical operators <, <=, >, >=, =, ==, and <> grouped with parentheses as needed.
If...Else...EndIf, Select...Case...EndSelect, Switch...EndSwitch, Ternary