Problem with the nested loop

Discuss RoboTask here
Post Reply
jupiter
Posts: 1
Joined: Sat Feb 24, 2007 8:32 am

Problem with the nested loop

Post by jupiter »

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?
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Problem with the nested loop

Post by Oleg »

It seems a malfunction. We'll investigate a problem and fix ASAP.
Post Reply