sas loigc operators not evaluating correctly : I have a condition which follows this logic Av(B^C) which is equivalent to (AvB) ^ (BvC).

Where:

    A = NAF> 2  
    B= (COUNT_INT + COUNT_NOINT < 25)  
    C= (NAF> 1)

This is the condition given in the specs:  NAF> 2   OR  
(( COUNT_INT + COUNT_NOINT < 25) AND (NAF> 1))  
This is how I coded it in sas, but its not producing the correct results. I appreciate any suggestions. Thanks.

if (((naf gt 2 or sum(count_int,count_nonint) lt 25)) and (naf gt 2 or naf gt 1)) then check_naf = "bad";
