For/Next - Sanyo MBC-550 Series User Manual

Table of Contents

Advertisement

FOR/NEXT
Purpose
This instructs the system to loop as many times as
specified.
The FOR and NEXT statements must be used
together.
Form
Description
(1) <variable> is a counter controlling the repeated
executions•
(2) <initial value> is the counter initial value;
<final value> is the counter final value. The statement
following the FOR is executed through NEXT, then the
counter is incremented by <increment> value. If the
counter value does not reach the final value, the
execution will be repeated after returning to the next
FOR statement. This procedure will be repeated until
the counter value reaches the final value. When it
reached the final value, control is passed to the
statement following the NEXT.
(3) If STEP is omitted, <increment> is assumed as 1.
3-47

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents