module loop {
int+read+write reset;
int+read+write run;
int+read cycle;
int+read start_val;
int+read end_val;
int+read incr;
};
loop iterates an operation. For example, you could use a loop object to control the movement of an object in your application; this could be as simple as controlling the movement of a slider, or as complex as continuously looping a 3D animation.
The loop object contains the following parameters that you can use to control the iteration:
When set to 1, resets the count subobject to the value of the start_val subobject. This value is reset to 0 right after it is changed.
When set to 1, completes an iteration of the loop. It is reset to 0 when the loop is finished.
If set to 1, iterates the loop continuously.
Indicates the starting value of the iteration.
Indicates the ending value of the iteration.
Indicates the interval at which to count from the starting value to the ending value.
The loop object contains these other subobjects that indicate the progress of the iteration:
If set to 1, indicates that an iteration of the loop completed.
Indicates the current value between the starting value and ending value.