You copied the Doc URL to your clipboard.

21.53 MEXIT

The MEXIT directive exits a macro definition before the end.


Use MEXIT when you require an exitfrom within the body of a macro. Any unclosed WHILE...WEND loopsor IF...ENDIF conditions within the bodyof the macro are closed by the assembler before the macro is exited.


        MACRO$abc    example abc     $param1,$param2        ; code        WHILE condition1            ; code            IF condition2                ; code                MEXIT            ELSE                ; code            ENDIF        WEND        ; code        MEND

Related reference