Breaking a loop early.

BlitzMax Forums/BlitzMax Beginners Area/Breaking a loop early.

Use the Exit command.

Here is the example from the docs:
Rem
Exit causes program flow to exit the enclosing While, Repeat or For loop.
End Rem

Repeat
	Print n
	n:+1
	If n=5 Exit
Forever