The manual is correct. You took it out of context.

Note the first example:
Code:
10 < x

But if you tried:
Code:
if 10 < x

...you'd get an error because you always need parentheses around the comparison in an "if".

The manual says "if (comparison)" -- the comparison is always inside parentheses. Further sets of parentheses can be used to control precedence, but a comparison must reside in a pair of parentheses.

Jibb


Formerly known as JulzMighty.
I made KarBOOM!