Use the Exit key word. This will exit the current function / procedure and continue from where the procedure was called.