GM: break

From GMpedia.org Wiki

Jump to: navigation, search

break
 

Type: statement
Limitations: none
The correct title of this article is break. It appears incorrectly here because of technical restrictions.

Example

 break;

If used inside of a statement that forms a loop (repeat, while, do, for, with) or inside of a switch statement, it will break the loop and continue on with the next piece of code in the event. If used outside such a statement it will perform as an exit statement, ending the event execution.

[edit] See Also

This article was originally found at the Game Maker Knowledge Base, contributed by Abyssal_Nuclei.
See the talk page for details
Personal tools