July 14th, 2003, 10:26 PM
while loops question
I'm pretty sure I know the answer to this but gonna ask the question cause my program is acting funny. If I have to nested loops:
when the break statement is encountered, does the inner loop breaks and goes back to the outer loop or will the outer loop break too?
Some day I'll create a smart quote to put here.
July 15th, 2003, 12:58 AM
A break only breaks from the innermost containing loop, so it will continue to execute the outer loop.
July 15th, 2003, 07:20 AM
July 15th, 2003, 01:04 PM
I know. Just, my program is acting really funny. I guess is something else.
July 18th, 2003, 01:08 PM
care to be more specific?
July 18th, 2003, 03:00 PM
It's cool. The loops are just getting more complex. I'm gonna put the program down for a couple of days and then come back to it.