If...Then...Else

Use the If...Then...Else statement to define two blocks of statements; one of them runs when a specified condition is True, and the other one runs when the condition is False.


If age < 16 Then
    MsgBox "You are not old enough for a license."
Else
    MsgBox "You can be tested for a license."
End If