14 lines
633 B
Markdown
14 lines
633 B
Markdown
## 7.1 Syntax of the Loop Statement
|
|
|
|
The full syntax of the loop statement in AVAP™ is as follows:
|
|
|
|
```javascript
|
|
startLoop(control, start, end) // Code block to repeat endLoop()
|
|
```
|
|
|
|
This syntax consists of three main parts:
|
|
|
|
* control : This is the loop control variable used to track the progress of the loop. It is initialized with the starting value of the loop and is incremented with each iteration until it reaches the end value.
|
|
* start : This is the starting value of the loop. The loop begins at this value.
|
|
* end : This is the ending value of the loop. The loop terminates when the control variable reaches this value.
|