07.11.2012, 16:11
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.