When using the IF..Then statement how many comparison terms can you have? Is the following a legal instruction:

IF (PORTA.0 = 1 AND PORTA.1 = 1) OR (PORTA.2 = 1) THEN PORTB.0 = 1

Any help would be appreciated

thank you,
Shawn