If you exit from a procedure using "Exit <code> scope=procedure", every following invocation will be skipped, it will just return immediately without executing any of the code within it.
For example, if you turn on stepping and run this, you will see that it skips evaluating the procedure when "MyExit 0" is reached:
procedure MyExit {
Exit {1} scope="procedure"
}
MyExit 1
MyExit 0
if ({_EXIT_CODE} == 0 ) {
Wait 10
}