I know it's not the most elegant piece of code but it's simple enough for what I need.
Example:
Code: Select all
<label name="start" />
<do_all exact="$ships.count" counter="$a">
<!-- do some stuff -->
<resume_label label="outOfLoop" />
<label name="returnToLoop" />
<!-- do more stuff -->
</do_all>
<!-- all done>
<resume_label label="start" />
<label name="outOfLoop" />
<!-- do a bunch of stuff using variables set inside the loop -->
<resume_label label="returnToLoop" />