Skip to content

MvCALLSTOP#


MvCALLSTOP can be explicitly halted using the tag to exit the loop. Execution jumps to the code following the closing tag.

Syntax
<MvCALLSTOP> 

This 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>

<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>