Loop in a loop
#2

Yes, a continue or break statement only affects the lowest enclosing loop (in your case the while). Depending on what you actually want to do, I suggest just breaking out of the while. But if you have any extra code after the while loop, but within the for loop, you have a problem.
Reply


Messages In This Thread
Loop in a loop - by wups - 07.11.2012, 15:58
Re: Loop in a loop - by Vince - 07.11.2012, 16:11
Re: Loop in a loop - by [KHK]Khalid - 07.11.2012, 21:24
Re: Loop in a loop - by Babul - 08.11.2012, 00:25

Forum Jump:


Users browsing this thread: 1 Guest(s)