[If Statement] Comparing value to multiple integers
#5

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
PHP код:
switch(myVariable)
    case 
12812131415: {}
    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.
Reply


Messages In This Thread
[If Statement] Comparing value to multiple integers - by Jonesy96 - 08.07.2016, 18:14
Re: [If Statement] Comparing value to multiple integers - by SickAttack - 08.07.2016, 18:17
Re: [If Statement] Comparing value to multiple integers - by AbyssMorgan - 08.07.2016, 18:21
Re: [If Statement] Comparing value to multiple integers - by Ritzy2K - 08.07.2016, 18:26
Re: [If Statement] Comparing value to multiple integers - by Jonesy96 - 08.07.2016, 18:49

Forum Jump:


Users browsing this thread: 1 Guest(s)