assistance-engine/docs/developer.avapframework.com/chapter11_3.md

9 lines
762 B
Markdown

## 7.2 Functioning of the Loop Statement
The loop statement in AVAP™ follows this execution process:
* The control variable `control` is initialized with the starting value specified in `start` .
* The loop condition is evaluated: while the value of `control` is less than or equal to the end value `end` , the code block within `startLoop()` is executed. If the value of `control` exceeds the end value, the loop terminates, and execution continues after `endLoop()` .
* In each iteration of the loop, the code block within `startLoop()` is executed, and the control variable `control` is automatically incremented by one.
* Once the control variable reaches or exceeds the end value `end` , the loop terminates, and execution continues after `endLoop()` .