The break statement is mostly used to break out of a switch statement but can be used in loop to cancel that at some point. So basically break is very handy to make sure the code is not being run when for example a match has been found in a switch statement.
Cool art used in thumb:
CC0 by Jetrel
https://opengameart.org/content/giant-smw-style-button
▶ Gamemaker Studio: https://www.yoyogames.com/get
▶ Trial limitations: https://help.yoyogames.com/hc/en-us/articles/230407528-GameMaker-Studio-2-Trial-Limitations
🎮 My free game Clunky souls:
https://1up-indie2.itch.io/clunky-souls
💓 My assets:
Get some assets at itch.io https://1up-indie2.itch.io/
👑 Support me and get fresh game art and game maker projects every month:
https://www.patreon.com/1upindie
Follow me on:
📸 Instangram: https://www.instagram.com/1upindie
🐦 Twitter: https://twitter.com/1upIndie
💬 Discord: https://discord.gg/gvr98nb
Add comment