Stopping 1 part of the code is unnecessary because SmileBASIC is not multithreaded. However, to stop loops, use BREAK, to stop a subroutine (gosub), use RETURN, and you can use large IF statements or labels to stop functions. Are any of these what you mean?