Whenever I have an if statement that uses ||, it works fine for one or two statements:
if(A == (B||C))
|
works fine.
if(A == (B||C||D||E||F||G))
|
Does not work fine. =\ If anyone wants to see the coding thats not working. (its basically the same thing, Just a little more complex.)
Is there a limit to how many "||"s you can do?
Does it? That doesn't mean if A is B or C. It means if A is the first true value in B or C. That is, if B==4 and C==6, you're testing if A==4 only.
The correct usage is if(A==B || A==C).
Lummox JR