label and goto to have infinite loop

Post comments and suggestions for RoboTask here
Post Reply
mikronos
Posts: 21
Joined: Sat Oct 21, 2006 9:09 am
Location: France

label and goto to have infinite loop

Post by mikronos »

Hi all,Don't blame me :( , but it would be nice to have the possibility to jump on any part of a task. For that I suggest the use of 'Label' and 'Goto'.Label name could be a free name or a variable ( that will allow some indexation).And if that work (!) what about the possibility to call another task with a label as parameter, to go inside the task at the position of the label ?I have tried to bypass the label/goto in a task where I need an infinite loop with some condition to break it. But infortunately the build in function 'Simple Loop' doesn't allow to change the content of the variable where the counter is stored. eg:Simple Loop From 0To 1Assign to variable COUNT... some code hereIF my break condition is FALSESet Variable COUNT with value 0 ( After that I expect to loop again and again, but that don't work )ENDIFEnd LoopI hope you see what I mean :)Cheers,Mikronos.
superdave627
Posts: 1
Joined: Fri May 29, 2015 5:24 pm

Re: label and goto to have infinite loop

Post by superdave627 »

I agree. A goto command would be very helpful for incorporating subroutines.
Post Reply