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