+ 2

If NOT Statement Syntax Issues

Can someone explain to me what my syntax should be here? It doesn't seem to change anything not having the = signs. if(countz > 10 && countz = !20 || countz = !40)

2nd Jun 2018, 10:55 PM
Michelle
Michelle - avatar
2 Réponses
+ 2
Just trying to guess what it is you want to do, would that be (In english) "countz greater than 10 but not 20 or 40" if(countz > 10 && countz !=20 && countz !=40)
2nd Jun 2018, 11:06 PM
ifl
ifl - avatar
+ 1
I want to say: If countz is greater than 10 and is not 20 or 40. Thanks for the clues though. I think I see what I did wrong. It seems so obvious looking at your example. haha
3rd Jun 2018, 12:33 AM
Michelle
Michelle - avatar