MEXIT directive exits a macro definition before the end.
MEXIT when you require an exit
from within the body of a macro. Any unclosed
IF...ENDIF conditions within the body
of 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