Leticia Project
01-07-2006, 05:11 AM
Hi!
How can I use a IF and THEN command in BS2?
I would like to write a code like this:
Slow:
IF IN1=1 AND IN6=0 THEN
ˇ GOSUB slowservo
ENDIF
RETURN
But the Debugger only tell me that THEN should have a label?
I want the program to continue on the next line, without using another label, is this possible? http://forums.parallax.com/images/smilies/smile.gif
Thank you!
How can I use a IF and THEN command in BS2?
I would like to write a code like this:
Slow:
IF IN1=1 AND IN6=0 THEN
ˇ GOSUB slowservo
ENDIF
RETURN
But the Debugger only tell me that THEN should have a label?
I want the program to continue on the next line, without using another label, is this possible? http://forums.parallax.com/images/smilies/smile.gif
Thank you!