Quote:
Originally Posted by Cubical
Is it possible to do something like
PHP Code:
switch(blah){
case "blah" "blah": //if either are true then proceed
doStuff();
break;
default case "blah": //if either are true then proceed
doStuff();
break;
}
|
You can do that like this..
PHP Code:
switch(blah){
case "blah": case "blah2":
doStuff();
break;
case "blah3": default:
doStuff();
break;
}
Drops read-ability quite a bit imo though.