Skip to content

MvFOREACHCONTINUE#


Returns program flow to the top of the loop, performing the operations would normally occur at the bottom of the loop i.e. reading the next iterator.

Syntax
<MvFOREACHCONTINUE> 

Example#

This example loops through the orders array. The <MvFOREACHCONTINUE> tag is used to skip processing if the fname field contains the string 'test order'. :contentReference[oaicite:1]{index=1}

<MvFOREACH ITERATOR="l.item" ARRAY="l.orders" INDEX="l.pos">
    <MvCOMMENT> filter out any test orders </MvCOMMENT>
    <MvIF EXPR="{ 'test order' IN l.item:fname }">
        <MvFOREACHCONTINUE>
    </MvIF>

    ... Process other items ...
</MvFOREACH>