This has got to be simple but I can't see the problem. This is my code:
if not GPIO.1 then time1 = 1 else time1 = 0
endif
IF not GPIO.2 THEN time2 = 2 else time2 = 0
endif
IF not GPIO.3 THEN time4 = 4 else time4 = 0
endif
if not GPIO.4 then time8 = 8 else time8 = 0
endif
The compiler error is: bad expression or missing THEN
I tried putting colons in it even tho the manual doesn't say they are needed, but that was no help.
Hmmm, I copied an IF THEN out of the manual and ran it thru the compiler, same error. What's up?
Russ
Bookmarks