It's a relatively common error to not include parenthesis in IF statements with multiple clauses. This almost always produces unexpected results.
I'd suggest two basic warnings:
|| - Any use of || where adjacent non-whitespace characters are not the appropriate parenthesis.
&& - Any use of && where adjacent non-whitespace characters are not the appropriate parenthesis.
Reported internally within InterSystems:
It's a relatively common error to not include parenthesis in IF statements with multiple clauses. This almost always produces unexpected results.
I'd suggest two basic warnings:
|| - Any use of || where adjacent non-whitespace characters are not the appropriate parenthesis. && - Any use of && where adjacent non-whitespace characters are not the appropriate parenthesis.