122-32000 Parallax Inc, 122-32000 Datasheet - Page 298

MANUAL PROPELLER

122-32000

Manufacturer Part Number
122-32000
Description
MANUAL PROPELLER
Manufacturer
Parallax Inc
Datasheets

Specifications of 122-32000

Accessory Type
Manual
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Propeller Education (PE) Kit
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
The above example performs the same way as the previous, but the repeat loop uses negative
logic because it continues “
false.
In either example, if
the condition would cause the loop to never execute at all, which is why we call it a zero-to-
many loop.
The
at the end of every iteration, making it a one-to-many loop. For example:
This works the same as the previous examples, looping 10 times, except that the condition is
not tested until the end of each iteration. However, unlike the previous examples, even if
was equal to 10 or higher before the first iteration, the loop would run once then terminate,
which is why we call it a one-to-many loop.
Other REPEAT Options
There are two other commands that affect the behavior or
the
Page 298 · Propeller Manual v1.0
X := 0
repeat
while X < 10
NEXT
REPEAT
byte[$7000][X] := 0
X++
(page 246) and
form described by syntax 4 is very similar to syntax 3, but the condition is tested
– Spin Language Reference
X
was equal to 10 or higher before the first iteration of the
QUIT
UNTIL
(page 291) commands for more information.
” a condition is true; i.e: it continues while a condition is
'Increment RAM value
'Increment X
'Repeat while X is less than 10
REPEAT
loops:
NEXT
and
REPEAT
QUIT
. See
loop,
X

Related parts for 122-32000