Quote (ferf @ Jun 18 2016 03:11pm)
what makes you think it should work? it looks like a compile error to me.
! is a unary operator, meaning it only has one operand to the right. however, you have two operands there. so something isn't right.
it converts into:
Code
if (true ! true)
then:
Code
if (true false)
does that look good to you?
the if keyword requires an expression to return a single boolean value.
99% of the time you think the compiler is wrong is actually user error.
This post was edited by carteblanche on Jun 18 2016 01:16pm