Have a look at https://docs.larian.game/Osiris_Design_Patterns#Breaking_off_a_Loop to see how you can easily break off a loop. It is slightly more typing work than a plain "break;", but not that much.