Lasso Soft Inc. > Home

[Loop] ... [/Loop]

[Loop] ... [/Loop] repeats the contents of the container tag a specified number of times. The [Loop_Count] tag can be used to return the value of the current loop from 1 up to the specified end value.

Optional parameters allow the loop to loop between any two values and allow the increment of the loop to be changed.

  • Syntax
  • Parameters
[Loop: Loop Count] ... [/Loop]

[Loop: -LoopFrom=Start Value,
     -LoopTo=End Value,
     -LoopIncrement=Increment]
   ... 
[/Loop]
Optional Parameters
Loop Count The number of iterations the loop should perform. Either an integer value or -LoopFrom and -LoopTo parameters are required.
-LoopFrom The starting value for loop iterations.
-LoopTo The ending value for loop iterations.
-LoopIncrement The number which should be used to modify the loop count on each loop iteration. Defaults to 1.
Examples

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]
Result:
<br>This is repeated 3 times.
<br>This is repeated 3 times.
<br>This is repeated 3 times.
Tag Link [Loop] ... [/Loop] Category Conditional
Type Container Data Source Any
Support Preferred Version 2.5
Output Type None Security None
Implementation Sets Lasso 5.0,LDML3x,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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft