K
Kevin Blount
I've been unsuccessful finding a site that tells me, so I'm asking here:
can I have multiple 'clauses' per 'case' in a 'switch' statement?
e.g.
switch "myVar"
{
case "1", "a":
break;
case "2", "b":
break;
default:
break;
}
and if so, what's the proper syntax, as the above didn't work
Many thanks
can I have multiple 'clauses' per 'case' in a 'switch' statement?
e.g.
switch "myVar"
{
case "1", "a":
break;
case "2", "b":
break;
default:
break;
}
and if so, what's the proper syntax, as the above didn't work
Many thanks