IIf Function |
Syntax:
IIf(condexpr, TruePart, FalsePart)
Group:
Description: Returns the value of the parameter indicated by condexpr. Both TruePart and FalsePart are evaluated.
Parameters:
Parameter |
Description |
If this value is True then return TruePart. Otherwise, return FalsePart. |
|
Example:
Sub Main
Debug.Print IIf(1 > 0,"True","False") '"True"
EndSub
See Also: