To execute a loop three times...
Example 1
In the above example, counting starts at zero... it's the same as specifyingCode:CounterA var Byte .. For CounterA=0 to 2 HIGH LED1 PAUSE 500 LOW LED1 PAUSE 500 Next CounterA
Code:For CounterA=1 to 3
Example 2
I'm sure a few more examples can be had too... but that's a starter...Code:CounterA var Byte .. CounterA=3 While CounterA>0 CounterA=CounterA-1 HIGH LED1 PAUSE 500 LOW LED1 PAUSE 500 Wend
Bookmarks