MvCOMMERCESTOP#
MvCOMMERCESTOP can be explicitly halted using the tag to exit the loop. Execution jumps to the code following the closing tag.
Syntax
<MvCOMMERCESTOP>
This example terminates the <MvCOMMERCE>
if an unexpected value is returned.
<MvCOMMERCE METHOD="{ Module_Code() }" FIELDS="{ l.fields }">
<MvIF EXPR="{ s.return_code EQ 1 }">
... process code ...
<MvASSIGN NAME="l.status" VALUE=1>
<MvELSE>
<MvASSIGN NAME="g.Authorization_Failure_Message" VALUE="Commerce Library Failure.">
<MvASSIGN NAME="l.status" VALUE=0>
<MvCOMMERCESTOP>
</MvIF>
</MvCOMMERCE>