You may change the value of this variable inside the loop. If you do so in a "From-Step-To" loop, then the increment for the next iteration will be added to the modified value. Such a modification has no effect on the next iteration in a "In" loop, nor does it affect the contents of the matrix from which the values are taken.
The loop variable can be used anywhere inside the body of the loop to perform calculations. It can also be referenced in the Leave and Iterate statements.
The loop variable is a Global of type Number. It does not have to be declared before the loop. Its name should obey the naming conventions for global variables.
[This is an optional parameter.]
This parameter must be a Global variable of type Number or an expression that evaluates to a Number.
"From-Step-Do" loops should not have an In clause.
[This argument is mandatory for "From-Step-To" loops. No default is provided.]
This parameter must be a Global variable of type Number or an expression that evaluates to a Number.
This expression is evaluated anew at each iteration.
"From-Step-Do" loops should not have an In clause.
[This argument is permitted only in "From-Step-To" loops. If no step size is indicated, a default value of 1 is assumed.]
This parameter must be a Global variable of type Number or an expression that evaluates to a Number.
This expression is evaluated anew each iteration.
"From-Step-Do" loops should not have an In clause.
[This argument is mandatory for "From-Step-To" loops. No default is provided.]
This expression is evaluated anew at each iteration. It is permissible to modify the matrix in the body of the loop.
From, Step and To must not be used in "In" loops, but you may use While and Until.
[This argument is mandatory for "In" loops. There is no default matrix.]
This parameter must be a Global variable of type Logical or an expression that evaluates to a Logical.
This expression is evaluated anew each iteration.
[This optional parameter is by default set to True.]
This parameter must be a Global variable of type Logical or an expression that evaluates to a Logical.
[This optional parameter is by default set to False.]
You may specify as an argument the name of the loop variable associated with the loop you wish to leave.
Leave is the Garfield equivalent of the break statement in C, "break" may be used instead of "Leave" if preferred.
[Use of a Leave statement is optional.]
You may specify as an argument the name of the loop variable associated with the loop you wish to leave.
Iterate is the Garfield equivalent of the continue statement in C, "continue" may be used instead of "Iterate" if preferred.
[Use of an Iterate statement is optional.]
Formatted on 21/01/18 at 16:55.