| Tag Link | [Loop] ... | Category | Conditional |
|---|---|---|---|
| Type | Container | Source Available | No |
| Support | Preferred | Version | 2.5 |
| Change | Unchanged | Data Source | Any |
| Output Type | None | Security | None |
| Implementation | Internal | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x, Lasso 2.5 |
[Loop] ... [/Loop] repeats the contents of the container tag a specified number of times. A single parameter specifies the number of times the tag should loop. The [Loop_Count] tag can be used within the container to return the value of the current loop from 1 up to the end value.
Optional
An optional
The
[Loop: Loop Count] ... [/Loop]
[Loop:
...
[/Loop]
| Optional Parameters | |
|---|---|
| Loop Count | The number of iterations the loop should perform. |
| -From | The starting value for loop iterations. |
| -To | The ending value for loop iterations. |
| -By | The number which should be used to modify the loop count on each loop iteration. Defaults to 1. |
In prior versions of Lasso this tag accepted
To repeat a portion of a page a set number of times:
Use the [Loop] ... [/Loop] tags with an integer value in the opening tag. The contents of the tags will be repeated the specified number of times.
[Loop: 3]
<br>This is repeated 3 times.
[/Loop]
<br>This is repeated 3 times.
<br>This is repeated 3 times.
<br>This is repeated 3 times.
| Substitution | ||
|---|---|---|
|
|
| |
| Container | ||
|
|
| |
| Process | ||
|
|
|
|