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

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
NEXT
Skip remaining statements of
((PUB ┆ PRI))
Explanation
NEXT
further statements in the
started thereafter.
Using NEXT
NEXT
move immediately to the next iteration of the loop. For example, assume that
created earlier and
The above code iteratively clears RAM locations and prints the value of
with one exception. If
the loop to skip remaining lines and go right to the next iteration. This has the effect of
clearing RAM locations $7000 through $7003 and locations $7005 through $7009 and
printing 0, 1, 2, 3, 5, 6, 7, 8, 9 on the display.
The
Page 246 · Propeller Manual v1.0
NEXT
repeat X from 0 to 9
NEXT
is typically used as an exception case, in a conditional statement, in
if X == 4
byte[$7000][X] := 0
Print(X)
is one of two commands (
next
– Spin Language Reference
command can only be used within a
Print()
X
equals 4, the
REPEAT
is a method created elsewhere that prints a value on a display:
REPEAT
NEXT
loop to be skipped and the next iteration of the loop to be
loop and continue with the next loop iteration.
IF
and
'Repeat 10 times
'Skip if X = 4
'Clear RAM locations
'Print X on screen
statement executes the
QUIT
REPEAT
) that affect
loop; an error will occur otherwise.
REPEAT
NEXT
loops.
command which causes
X
on a display, but
NEXT
REPEAT
X
is a variable
causes any
loops to

Related parts for 122-32000