Chapter 5 - VB.Net by Schneider
23
ElseIf clause
•
If
condition1
Then
•
action1
•
ElseIf
condition2
Then
•
action2
•
ElseIf
condition3
Then
•
action3
•
Else
•
action4
•
End If
An extension of the If block allows for more than two possible alternatives with the
inclusion of ElseIf clauses.
Note:
there is no space between the word "Else" and "If"
Only one "End If" is required.