RosettaCodeData/Task/Conditional-structures/VBA/conditional-structures-5.vba
2023-07-01 13:44:08 -04: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