Problem with the nested loop
Posted: Sat Feb 24, 2007 10:26 am
Hi guys! At first I want to say that your software is outstanding. I recently downloaded it and was quite amazed...
But I have found something to point out. It seems that inner loops don't work properly. For example:
1 Simple Loop
2 //something 1
3 If (condition) then
4 break
5 End If
6 Simple Loop
7 //something 2
8 End Loop
9 End Loop
10 //something 3
There is a nested loop (lines 6-8) inside the outer one (lines 1-9). Once "if" condition (line 3) is true the "break" command executes and ends up the current loop. The program should continue the execution at line 10. But instead it just jumps over the first "End Loop" statement (line 8) and the program continues from line 9. Is it right?
But I have found something to point out. It seems that inner loops don't work properly. For example:
1 Simple Loop
2 //something 1
3 If (condition) then
4 break
5 End If
6 Simple Loop
7 //something 2
8 End Loop
9 End Loop
10 //something 3
There is a nested loop (lines 6-8) inside the outer one (lines 1-9). Once "if" condition (line 3) is true the "break" command executes and ends up the current loop. The program should continue the execution at line 10. But instead it just jumps over the first "End Loop" statement (line 8) and the program continues from line 9. Is it right?