User`s manual
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
Syntax of do..loop statement is:
do
statement_1
...
statement_N
loop until expression
where expression returns a True or False value. The repeat statement executes
statement_1 ... statement_N continually, checking the expression after each itera-
tion. Eventually, when expression returns True,
do..loop statement terminates.
The sequence is executed at least once because the check takes place in the end.
I = 0
do
I = I + 1
' execute these 2 statements
PORTB = I
' until i equals 10 (ten)
loop until I = 10
MikroElektronika:
Development
tools
-
Books
-
Compilers
mikroBASIC
making it simple...
95
page
Do..Loop Until Statement
Example