Hello, on my 08M2, looking at the following code:
main:
if pin3 = 1 then
high 1
goto playTunes
else
goto main
endif
Is this syntax correct to perform both the "high 1" and "goto playtunes" commands if pin=3.
Can you perform two things if your logic testing is correct, or do you need to direct it to a seperate function to run those two things ?
(previously I have only ever had to do one thing after a logic test.)
thanks for any help.
main:
if pin3 = 1 then
high 1
goto playTunes
else
goto main
endif
Is this syntax correct to perform both the "high 1" and "goto playtunes" commands if pin=3.
Can you perform two things if your logic testing is correct, or do you need to direct it to a seperate function to run those two things ?
(previously I have only ever had to do one thing after a logic test.)
thanks for any help.