<MvCALL> can be explicitly halted using the <MvCALLSTOP> tag to exit the loop. Execution jumps to the code following the closing </MvCALL> tag.
ExampleThis examples calls a URL and displays the page. If any value other than 200 (i.e. http status ok ) is returned in s.callreturnheader[1] the call terminates by using <MvCALLSTOP> Example:
<MvCALL ACTION = "g.url"
METHOD = "POST"
<MvIF EXPR = "{ '200' in s.callreturnheader[1] }">
<MvEVAL EXPR = "{ s.callvalue }">
<MvELSE>
No web page available
<MvCALLSTOP>
</MvIF>
</MvCALL>
|