GML Overview: Exit

The exit statement does the same thing no matter where it is used, it simply ends the execution of code in the current event. Meaning all the rest of the code in the same event will be skipped over.

Example
exit;