Example
If txtNum.Text = 1 Then
Beatle = “John”
ElseIf txtNum.Text = 2 Then
Beatle = “Paul”
ElseIf txtNum.Text = 3 Then
Beatle = “George”
ElseIf txtNum.Text = 4 Then
Beatle = “Ringo”
Else
Beatle = “Who?”
EndIf
Executed if Text = 1
Executed if Text ? 1 and Text = 2
Executed if Text ? 1 or 2 and Text = 3
Executed if Text ? 1 or 2 or 3 and Text = 4
Previous slide
Next slide
Back to first slide
View graphic version