radiogareth
Senior Member
This works fine......
init:
dirs=%00010111
symbol RED_LED=c.0
symbol GREEN_LED=c.1
symbol speaker=c.2
symbol Movement_Sensor=c.3
main:
if pinc.3=1 then goto alarm
high RED_LED
Pause 50
Low Red_LED
Pause 950
goto main
But if I replace the first line of main with:
"If Movement_Sensor=1 then goto alarm" the syntax checker chucks it out??? All the other symbols work as expected. It must be something obvious, but I'm missing it though a fog of passing lurgy ATM :-(
TIA
init:
dirs=%00010111
symbol RED_LED=c.0
symbol GREEN_LED=c.1
symbol speaker=c.2
symbol Movement_Sensor=c.3
main:
if pinc.3=1 then goto alarm
high RED_LED
Pause 50
Low Red_LED
Pause 950
goto main
But if I replace the first line of main with:
"If Movement_Sensor=1 then goto alarm" the syntax checker chucks it out??? All the other symbols work as expected. It must be something obvious, but I'm missing it though a fog of passing lurgy ATM :-(
TIA