Im not sure if I am doing something silly but the first two lines work OK, but the second two give a syntax error. The only difference being the second two are Porta inputs.
If b6>0 and pin6 = 0 then : low portb 6 : high portc 5 : b12=1 : endif
If b7>0 and pin7 = 0 then : low portb 7 : high portc 5 : b12=1 : endif
If b8>0 and porta pin0 = 0 then : low portc 6 : high portc 5 : b12=1 : endif
If b9>0 and porta pin1 = 0 then : low portc 7 : high portc 5 : b12=1 : endif
any help is much appreciated
Alan
If b6>0 and pin6 = 0 then : low portb 6 : high portc 5 : b12=1 : endif
If b7>0 and pin7 = 0 then : low portb 7 : high portc 5 : b12=1 : endif
If b8>0 and porta pin0 = 0 then : low portc 6 : high portc 5 : b12=1 : endif
If b9>0 and porta pin1 = 0 then : low portc 7 : high portc 5 : b12=1 : endif
any help is much appreciated
Alan