Is it possible to have multiple control variables in a switch statement?
For example:
[CODE=c]switch(a , b)
{
case(a>b):
case(b<a):
case(a==b):
}[/CODE]
(I know you can't separate it by a comma...I've tried....I also know that there aren't any breaks or anythign like that. I'm not asking about syntax of a switch statement, just if you can have multiple control variables) but is there any other way to do this?
For example:
[CODE=c]switch(a , b)
{
case(a>b):
case(b<a):
case(a==b):
}[/CODE]
(I know you can't separate it by a comma...I've tried....I also know that there aren't any breaks or anythign like that. I'm not asking about syntax of a switch statement, just if you can have multiple control variables) but is there any other way to do this?
Comment