MvFORSTOP#
Returns program flow to the top of the loop, performing the operations would normally occur at the bottom of the loop i.e. incrementing the index.
Syntax
<MvFORSTOP>
Example#
This example loops through the orders array. The <MvFORSTOP>
tag is used to exit the loop if an expected field is null.
<MvFOR INDEX="l.pos" FIRST="{ 1 }" NEXT="{ l.pos + 1 }" LAST="{ 100 }">
<MvCOMMENT> If this field is empty display an error and exit the loop. </MvCOMMENT>
<MvIF EXPR="{ ISNULL l.orders[l.pos]:name }">
<MvEVAL EXPR="{ 'Error in order number ' $ l.orders[l.pos]:id $ '. name not found.' }">
<MvFORSTOP>
</MvIF>
</MvFOR>