Condition := Comparison [{'and' | 'or'} ...]
A compound condition lets you use logical 'and' and 'or' operators to apply multiple comparisons. Comparisons are evaluated left to right. The 'and' operator has a higher precedence than 'or'. The first comparision reached satisfies the whole condition true stops evaluation of any remaining conditions.
Parenthesis cannot be used to nest conditions; preventing conditions from becoming overly complex. The use of precedence and comparison lists lets you write conditions that can be complex; yet are easy for a reader to understand.
IF @P and P > 0 :Unless the pointer is set the comparison is not evaluated.
IF A and B :When A is false, B is not evaluated.
IF A or B :When A is true, B is not evaluated.
IF A and B or X and Y :When A and B are both true, X and Y are not evaluated.
IF (A or B) and C :Parenthesis are not permitted.