Syntax |
IIf(condition,TrueExpression,FalseExpression) |
Description |
Returns TrueExpression if condition is True; otherwise, returns FalseExpression. |
Comments |
Both expressions are calculated before IIf returns. The IIf function is shorthand for the following construct: If condition Then |
Example |
Sub Main() |
See Also |
Choose (function); Switch (function); If...Then...Else (statement); Select...Case (statement). |
I |