FIT
100
© Copyright University of Washington 1999-2000
Example
v
If
txtNum.Text = 1
Then
v
MsgBox(“John”)
v
ElseIf
txtNum.Text = 2
Then
v
MsgBox(“Paul”)
v
ElseIf
txtNum.Text = 3
Then
v
MsgBox(“George”)
v
ElseIf
txtNum.Text = 4
Then
v
MsgBox(“Ringo”)
v
Else
v
MsgBox(“Who?”)
v
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