simple program problem
Annoying
Posts: 50
so I want my program to do something once a condition is satisfied, and STAY IN THE LOOP within the IF statement·until a different condition happens,
which doesn't work:
IF pulse2 < 1895 AND pulse1 > 3108· THEN···
DO
GOSUB GetOtherValue
PULSOUT 9, 800
LOOP UNTIL pulse1 < 1895
ENDIF
ANY SUGGESTIONS?? THANK YOU. through debug statements I found out that it executes the contents of the if statement only once.
which doesn't work:
IF pulse2 < 1895 AND pulse1 > 3108· THEN···
DO
GOSUB GetOtherValue
PULSOUT 9, 800
LOOP UNTIL pulse1 < 1895
ENDIF
ANY SUGGESTIONS?? THANK YOU. through debug statements I found out that it executes the contents of the if statement only once.
Comments