RosettaCodeData/Task/Conditional-structures/VBA/conditional-structures-5.vba
2018-06-22 20:57:24 +00:00

6 lines
162 B
Text

Sub C_S_Switch()
Dim myName
myName = 2
Debug.Print Switch(myName = 1, "Bryan", myName = 2, "Justin", myName = 3, "John")
'return : Justin
End Sub