[Loop_Count] returns the number of the current repetition of any looping container tag.
When used with the [Loop] ... [/Loop] tags it obeys the optional parameters so the [Loop_Count] can run backwards or jump ahead by the specified -LoopIncrement.
This tag can be used with the [Loop] ... [/Loop] tags, [While] ... [/While] tags, [Records] ... [/Records] tags or any other looping conditional tags.
[Loop_Count]
Use the [Loop_Count] tag inside the [Loop] ... [/Loop] tags. The following examples shows a loop counting backwards from 5.
[Loop: -LoopFrom=5, -LoopTo=1, -LoopIncrement=-1]
<br>This is repetiion [Loop_Count].
[/Loop]
<br>This is repetition 5.
<br>This is repetition 4.
<br>This is repetition 3.
<br>This is repetition 2.
<br>This is repetition 1.
Tag Link | [Loop_Count] | Category | Conditional |
---|---|---|---|
Type | Substitution | Data Source | Any |
Support | Preferred | Version | 2.5 |
Output Type | Integer | Security | None |
Implementation | Sets | Lasso 5.0,LDML25 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft