Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
en:create:functions:looppage [14.05.2016 21:27] – [loopPage()] admin | en:create:functions:looppage [26.08.2020 22:33] – sophia.schauer |
---|
| |
''int **loopPage**(int //repetitions//)'' | ''int **loopPage**(int //repetitions//)'' |
| |
| ''mixed **loopPage**(array //elements//)'' |
| |
Repeats the page -- beginning with the //start value// -- in a loop as often as it takes until the //end value// is reached. The current value is returned each time. | Repeats the page -- beginning with the //start value// -- in a loop as often as it takes until the //end value// is reached. The current value is returned each time. |
* //increment//\\ (optional) change in value on every loop pass (standard: 1) -- you can create an endless loop with the //increment// 0, which can be terminated using ''setNextPage('next')''. | * //increment//\\ (optional) change in value on every loop pass (standard: 1) -- you can create an endless loop with the //increment// 0, which can be terminated using ''setNextPage('next')''. |
| |
If only one parameter (//repetitions//) is specified the page will repeat as often as determined. The counter variable begins with 0 in this instance. | If only a nummeric parameter (//repetitions//) is specified the page will repeat as often as determined. The counter variable begins with 0 in this instance. |
| |
* //repetitions//\\ number of repetitions | * //repetitions//\\ number of repetitions |