I have a simple byond project I use for a testbed for little logic things like this--I haven't tested it, but I am pretty sure that this and the other statement are okay.  The problem is that everything on the right of the "in" statement is evaluated first, which screws with logic operators.

However, you can't go wrong by adding parenthesis to be sure.