IIf Function
Syntax
IIf(condexpr, TruePart, FalsePart)
Group
Description
Return the value of the parameter indicated by condexpr. Both TruePart and FalsePart are evaluated.
See Also
If, Select Case, Choose( ), If( )
Example
Sub Main
Debug.Print IIf(1 > 0,"True","False") '"True"
End Sub