|
Returns program flow to the top of the
ExampleThis examples loops through the orders array. The <MvFORSTOP> tag is used to exit the loop if an expected field is null. Example:
<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>
|