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.
[This argument is mandatory if the loop has a loop variable associated with it. No default is provided.]
This expression is evaluated anew at each iteration.
This parameter must be a Global variable of type Number or an expression that evaluates to a Number.
[If no step size is indicated, a default value of 1 is assumed.]
This expression is evaluated anew each iteration.
This parameter must be a Global variable of type Number or an expression that evaluates to a Number.
[This argument is mandatory if the loop has a loop variable associated with it. No default is provided.]
This expression is evaluated anew each iteration.
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 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.
[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.
[Use of an Iterate statement is optional.]
Formatted on 15/01/01 at 23:07.