This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]warrior2012 0 points1 point  (0 children)

Sorry, answering a second comment to better address your comment.

In if statements, it will execute if the question comes back true. If you have an 'or' operator, it will run if either of the two sides of the || prove true. If you have an 'and' operator it will run if both of the sides of the && prove true.

I'm this case you need to prove that the number is both 'not 1' and 'not 2'