Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:create:functions:looppage [14.05.2016 21:27] – [loopPage()] adminen:create:functions:looppage [26.08.2020 22:33] sophia.schauer
Line 4: Line 4:
  
 ''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. 
Line 11: Line 13:
   * //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
en/create/functions/looppage.txt · Last modified: 05.09.2023 23:00 by swissel.uni-mannheim
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki