Inhalt

Index

FOR ... NEXT

FOR...NEXT loop is executed till end_value is exceeded.

Syntax

FOR variable=start_value TO end_value [STEP step_value]

...

NEXT

Parameters

variable: name of the variable. Only local variables are allowed, no global variables.

start_value (real): initial value of the variable

end_value (real): value, till which the loop is executed. Before a loop is started, it is checked, whether end_value is reached.

step_value (real): value by which start_value is increased with every cycle of the loop. If not specified, start_value is increased by 1. step_value can be negative also. A change of step_value inside the loop is ignored.

Example

Remarks

Usable since script version 1.1 (Allplan 2012-1).



Allplan

(C) ALLPLAN GmbH

Privacy policy