Skip to content

For Each Continue#


Description#

Snippet#

<mvt:assign name="g.string" value="'one,two,three,four,five'" />
<mvt:do file="g.Module_Library_Utilities" name="l.success" value="SplitString( g.string, ',', l.settings:array )" />
<!-- @@ &mvt:global:MvDO_Error; -->

<h3>Continue</h3>
<mvt:foreach iterator="item" array="array">
    <mvt:if expr="l.settings:item EQ 'three'">
        <mvt:foreachcontinue />
    </mvt:if>
    &mvt:item;</br>
</mvt:foreach>

<h3>Stop</h3>
<mvt:foreach iterator="item" array="array">
    <mvt:if expr="l.settings:item EQ 'three'">
        <mvt:foreachstop />
    </mvt:if>
    &mvt:item;</br>
</mvt:foreach>

Functions Used#

  • SplitString