Search:

Type: Posts; User: boogerface

Search: Search took 0.11 seconds.

  1. Replies
    8
    Views
    1,187

    Re: nooby question

    I'm guessing there's no way to make it shorter then? :(
  2. Replies
    8
    Views
    1,187

    Re: nooby question

    | 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) {}
  3. Replies
    8
    Views
    1,187

    Re: nooby question

    wow, I didn't even explain it properly xD

    I mean't in an if statement. if (x == 1|2) {}

    Thanks again :P
  4. Replies
    8
    Views
    1,187

    nooby question

    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...
Results 1 to 4 of 4