Thread: Break statement
View Single Post
Old May 21st, 2006, 7:37 PM   #3
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 769
Rep Power: 3 Jimbo is on a distinguished road
you could use the idea you proposed, or you might consider using a label. This is pretty much the goto of Java, so some people might not like it. There's a blurb on labels here. Remember that the label comes before the outer loop, but will break you out of it.

[edit:] doggone you, andro... :p
Jimbo is offline   Reply With Quote