If or and then question

Hi Some code help please
I seem to be having issues with OR & AND when used together in an IF THEN statement
could someone please enlighten me to the correct syntax for this.

IF b0=1 OR b1=2 AND b2=3 THEN : GOTO main :ENDIF

what i want it to do is (b0=1 OR b1=2) AND b2=3

to get it to work I have had to use 2 lines of code

IF b0=1 AND b2=3 THEN GOTO main
IF b1=2 AND b2=3 THEN GOTO main

or join with an ELSEIF

i can't find any info in the manual about this.
I'm wondering if it's just not possible to use multiple logic functions in a single line

regards
 
Top