Comment
Comment by quietbritishjim
This will probably seem to obvious to mention to many, but it took me a few years to realise that you could replicate the "BREAK XYZ" from languages of yesteryear:
in modern languages by refactoring the loop you want to break out of into a function and using return instead: