Thanks - I think I've finally got it (with some help from the chatterbox as well).
All of which goes to confirm something a coworker once told me..
Me: What's the precedence in <lang> for these operators?
CW: Who cares? Use brackets - it's easier to read and
you won't get screwed...
In reply to Re^6: Conditional Operator Confusion
by Melly
in thread Conditional Operator Confusion
by Melly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |