Each of the conditional compilation expressions within a single conditional compilation statement group is evaluated in textual order from first to last until one of the expressions evaluates to True
. All lines enclosed by the group are disabled except for lines between the statement containing the True
expression and the next conditional statement of the group, or between the else statement and the end statement if an else appears in the group and all of the expressions evaluate to False
.
The constant expression is evaluated and then converted to Boolean
. If the expression is not convertible to Boolean
, an error results.
#
If
ConstantExpression [ Then
] LineTerminator#
End
If
LineTerminator#
ElseIf
ConstantExpression [ Then
] LineTerminator#
Else
LineTerminator