ID:145496
 
Code:
if((!foo1 && !foo2)||(!foo1 && foo2))


Question:
just wondering if that's valid? i don't have DM available right now, so i'm writing out some code on paper, and i just wanted to know if that's valid.

~FM

Forgetme wrote:
Code:
> if((!foo1 && !foo2)||(!foo1 && foo2))
>

Question:
just wondering if that's valid? i don't have DM available right now, so i'm writing out some code on paper, and i just wanted to know if that's valid.

~FM
Code:
> if(!foo1 && !foo2)
>

you only need one of those, they're the EXACT same thing
In response to Axerob
forgive me if i'm wrong (i've got a headache, and i'm in school, so i'm not thinking 100%), but these variables represent specific users logged in. foo1 = player1, foo2 = player2, so, (!foo1 && !foo2) means players have joined the game, (!foo1 && foo2) means there is a second player but not a first. so in this instance does that not make a clear difference?
In response to Forgetme
Forgetme wrote:
forgive me if i'm wrong (i've got a headache, and i'm in school, so i'm not thinking 100%), but these variables represent specific users logged in. foo1 = player1, foo2 = player2, so, (!foo1 && !foo2) means players have joined the game, (!foo1 && foo2) means there is a second player but not a first. so in this instance does that not make a clear difference?


i meant (!foo1 && !foo2) means NO players have joined the game
In response to Axerob
no ones checking if foo1 and foo2 are both false, the other is checking if foo1 is false and foo2 is true o_o
In response to Nintendo
....i was at school when i posted that earlier