Lasso Soft Inc. > Home

[ loop_continue ]

Method

[Loop_Continue] ends the current iteration of a looping method and immediately starts the next iteration.

  • Syntax
loop_continue
Examples
  • Beginner

To end the current iteration of the nearest looping method and start the next iteration:

Use the [Loop_Continue] method.  The following example loops from 1 to 10, tests whether the current loop_count is odd, and starts the next iteration if true, else the iteration continues to output even integers.

Code

loop(10)
  loop_count % 2 ? loop_continue
  loop_count + '<br>'
/loop

Result

2
4
6
8
10

Recent Comments

No Comments found

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