If THEN (ask for LABEL
BertG
Posts: 1
Here is my program copied from"Wht's a Microcontroller" page76. Some changes to try other ideas.
Everything I try I get "except "LABEL" after the THEN.
DO
DEBUG ? IN3
IF (IN3 = 1) THEN ' ask for a "label"
HIGH 14
PAUSE 50
LOW 14
PAUSE 50
else 'will not blue this name
' PAUSE 50
END ' will not blue this name
loop ' will not blue this name
END ' will blue this name
Everything I try I get "except "LABEL" after the THEN.
DO
DEBUG ? IN3
IF (IN3 = 1) THEN ' ask for a "label"
HIGH 14
PAUSE 50
LOW 14
PAUSE 50
else 'will not blue this name
' PAUSE 50
END ' will not blue this name
loop ' will not blue this name
END ' will blue this name
Comments
BTW, welcome to the Parallax forum!
-Phil
Add
' {$PBASIC 2.5}
at the top of your program.
You can just click on the 2.5 in the toolbar to do this.