BS1 Program Help
n0wiq
Posts: 8
I think I am being confused about the use of IF <condition> THEN on a BS1.
I had used:
IF p5 = 1 THEN
t2 = 120
t1 = 240
ELSE
t1 = 120
t2 = 240
END IF
and the IF p5 THEN is asking for a label to go to. I had understood that I could use the IF <condition> THEN the way I had entered it.
Post Edited By Moderator (Joshua Donelson (Parallax)) : 8/12/2009 4:20:42 PM GMT
I had used:
IF p5 = 1 THEN
t2 = 120
t1 = 240
ELSE
t1 = 120
t2 = 240
END IF
and the IF p5 THEN is asking for a label to go to. I had understood that I could use the IF <condition> THEN the way I had entered it.
Post Edited By Moderator (Joshua Donelson (Parallax)) : 8/12/2009 4:20:42 PM GMT
Comments
IF p5 = 1 THEN label1
t1 = 120
t2 = 240
GOTO label2
label1:
t2 = 120
t1 = 240
label2:
Notice that the two blocks of code were switched. You need to do that or change the = to <>