How do you stop a routine midstream...

E.g.

(if this
do this and stop the routine
else, do this and continue with the rest of the code..
)if

Of course there's exit and/or quit, but the option where it stops the routine midstream I am displaying stuff at the cmd line so if I exit I get the error quit / exit abort being displayed and I don't want to see that.