RNovember
Well-known member
Hello, I just have a quick question that I need answered.
Is it possible to loop 0 times through a for loop?
I want my code to loop from 0 to a number in a variable, and if that number is 0, then do nothing.
This is the code I have so far:
This works except it flashes once for zero. Should I put an if statement in the loop to send it back to the beginning, or is there an easy way to loop 0 times?
Is it possible to loop 0 times through a for loop?
I want my code to loop from 0 to a number in a variable, and if that number is 0, then do nothing.
This is the code I have so far:
Code:
flash:
bPtr=28
for b27=1 to 26
pause 500
for b27=1 to @bPtr
pulsout C.2, 150
pause 300
next b27
bPtr = bPtr + 1
next b27
goto main