Choosing an Action Using IIf(expr, truepart, falsepart)
Sub iffDemo() Debug.Print IIf(1 < 10, "True. 1 is less than 10", "False. 1 is not less than 10") End Sub