This means that your IF statements should look like this... IF X==21 && Y==12 THEN 'DO SMTH If you want to use button input at the same time you have to isolate the logical gates from the logical operators... IF (B AND #A) && KEY1==0 THEN 'DO SMTH