I'm new to PicAxe - please help me resolve this issue.

JOELCOSTELLO

New member
How do I make use of the & function to ensure that the 'if' statement is only true when two conditions have been met. Please see my current code below.:

start:
if (pinC7 = 1 AND pinC6 = 1) then
low B.0
else
high B.0
endif

goto start

---------

This presents the following syntax error:

if (pinC7 = 1 AND pinC6 = 1) then
^
Syntax error on line 2 at/before position 4

Error: syntax error

-------
Any help would be greatly appreciated.

Thanks - Joel
 
Top