Table of Contents

Advertisement

FOR...NEXT
Establish a FOR...NEXT loop.
usage:
FOR variable = start TO end {STEP stepval}
{some code}
NEXT
STEP is for specifying a step value other than the default of 1; if speci-
fied, stepval must be positive since whether to add or subtract stepval
from variable is determined dynamically at run-time (this allows '10
TO 0' without specifying a negative STEP value.).
FOR...NEXT loops can be nested up to 16 deep.
Note: NEXT is stand-alone and implies the variable from the last FOR
statement.
Page 34 • BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333
BASIC Stamp II

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BASIC Stamp II and is the answer not in the manual?

Table of Contents