Quote:
Originally Posted by AbyssMorgan
PHP код:
switch(myVariable)
case 1, 2, 8, 12, 13, 14, 15: {}
default: {
//bla bla
}
}
|
Thanks, good idea.
Quote:
Originally Posted by [ND]xXZeusXx.
Or if you really want to use if-else, and also want to compare strings or multiple variables then don't move to switch.
It should be something like this -
Код:
if(YourVariable != 1 && YourVariable != 1) // goes on.
|
Thanks, but this is the point of my question, and what I want to avoid.