The manual is correct. You took it out of context.
Note the first example:
But if you tried:
...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