Hi.
In VBScript I can use a Select Case statement like that:
Select Case X
Case 1 to 10 'X is between 1 and 10
Case 11,14,16 'X is 11 or 14 or 16
End Select
Is it possible to use the switch statement in Javascript to do that?
Do I have to use an if?
Thanks,
Robert Scheer
In VBScript I can use a Select Case statement like that:
Select Case X
Case 1 to 10 'X is between 1 and 10
Case 11,14,16 'X is 11 or 14 or 16
End Select
Is it possible to use the switch statement in Javascript to do that?
Do I have to use an if?
Thanks,
Robert Scheer
Comment