My rule of thumb is to always use && and friends in expressions, and "and" and friends for flow control.
That works well with the precedence rules, and it makes the intention explicit as to what's going on.
But I also have a rule of thumb to use parens where that makes things more clear.
/J
In reply to Re: Burned by precedence rules
by jplindstrom
in thread Burned by precedence rules
by vrk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |