BREAK Keyword

BlitzMax Forums/BlitzMax Programming/BREAK Keyword

null_term(Posted 2005) [#1]
One thing I'm noticing that Blitz is missing is a Break keyword to early out of loops. Yeah, you can do it with a flag, but it would be cool if it was built into the language. Any chance of this in a future release? It probably isn't needed for Select statements, but For, While, Repeat would be very useful.


teamonkey(Posted 2005) [#2]
Use "Exit" where you'd use Break.


N(Posted 2005) [#3]
And don't bother sticking Exit after a Case block in a Select..End Select.


null_term(Posted 2005) [#4]
Ah sweet. That'll do just nicely.