Should I start using 'or' consistently?
Consistency is always a good thing. But if you mean "exclusively", the answer should be no. 'or' and || have subtly different meanings (as others have pointed out; it's a precedence thing), and thus, have different uses. Try to be consistent on when and how you use them, but don't subject your code to contortions just to enforce exclusivity.
Dave
In reply to Re: || vs or
by davido
in thread || vs or
by andreas1234567
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |