MivaLearn
3/6/2019 - 10:00 PM

While Continue & Stop

<mvt:assign name="l.my_value" value="10" />
<mvt:assign name="l.settings:counter" value="0" />
<mvt:while expr="l.settings:counter LE l.my_value">
    The value of counter is: &mvt:counter; <br>
    <mvt:assign name="l.settings:counter" value="l.settings:counter + 1" />
    <mvt:if expr="l.settings:counter EQ 4">
        - The value of 4 is reached and will continue.<br>
        <mvt:whilecontinue />
    </mvt:if>
    <mvt:if expr="l.settings:counter EQ 8">
        <mvt:whilestop />
    </mvt:if>
</mvt:while

Output:
The value of counter is: 0 
The value of counter is: 1 
The value of counter is: 2 
The value of counter is: 3 
- The value of 4 is reached and will continue.
The value of counter is: 4 
The value of counter is: 5 
The value of counter is: 6 
The value of counter is: 7