762 B
762 B
7.2 Functioning of the Loop Statement
The loop statement in AVAP™ follows this execution process:
- The control variable
controlis initialized with the starting value specified instart. - The loop condition is evaluated: while the value of
controlis less than or equal to the end valueend, the code block withinstartLoop()is executed. If the value ofcontrolexceeds the end value, the loop terminates, and execution continues afterendLoop(). - In each iteration of the loop, the code block within
startLoop()is executed, and the control variablecontrolis automatically incremented by one. - Once the control variable reaches or exceeds the end value
end, the loop terminates, and execution continues afterendLoop().