[Loop_Abort] aborts the [Loop] ... [/Loop] or [While] ... [/While] tags, jumping immediately to the closing tag and not executing any further repetitions of the loop.
The [Loop_Abort] tag can be used to abort any looping container tag included [Records] ... [/Records], [Search_Arguments] ... [/Search_Arguments], [Sort_Arguments] ... [/Sort_Arguments], and more.
[Loop: Loop Count]
[Loop_Abort]
[/Loop]
[While: Conditional Expression]
[Loop_Abort]
[/While]
Use the [Loop_Abort] tag. The following example shows a [Loop] loop which performs a calculation until a negative value is found and [Loop_Abort] is called.
The variable result returns 51 at the end since (50-51) is less than 0.
[Loop: 100]
[Var: 'Result'=(50 - (Loop_Count))]
[If: (Var: 'Result') < 0]
[Loop_Abort]
[/If]
[/Loop]
<p>[Var: 'Result']
<p>51
Tag Link | [Loop_Abort] | Category | Conditional |
---|---|---|---|
Type | Process | Data Source | Any |
Support | Preferred | Version | 5.0 |
Output Type | None | Security | None |
Implementation | Internal | Sets | Lasso 7.0, Lasso 6.0, Lasso 5.0 |
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