If Function
Syntax
If(condexpr, TruePart, FalsePart)
-or-
Group
Description
Return the value of the parameter indicated by condexpr. Only one of the TruePart and FalsePart is evaluated.
Remarks
The two parameter version
is the same as
If(TruePart IsNot Nothing, TruePart, FalsePart)
See Also
If, Select Case, Choose( ), IIf( )
Example
Sub Main
Debug.Print If(1 > 0,"True","False") '"True"
End Sub