I'm guessing there's no way to make it shorter then? :(
Type: Posts; User: boogerface
I'm guessing there's no way to make it shorter then? :(
| means or. So I want to know if it's possible to check if x == 1|2 (x is equal to 1 or 2) without having to use 2 statements if (x==1 | x==2) {}
wow, I didn't even explain it properly xD
I mean't in an if statement. if (x == 1|2) {}
Thanks again :P
I just wanted to know is it possible to do something like x==1|2 or do I have to do x==1 | x ==2?
Sorry for the waste of time. I haven't been able to find it on google (might not be searching the...