Exit Loop

By enigma on 27 May 2012
what about an element, to exit/quit a loop?
instead of looping through thousands of records, where you know they are not going to be needed/used.
J.29 May 2012
I rather have a while-loop.
Kilian Hekhuis22 Jun 2012
I'm pretty sure this has come up a few times before. Can't bother to search for it right now...
enigma7 Nov 2012
hey joost, you can do a WHILE loop with an IF =)
one possibility:
- create local variable VAR as integer and set it to 0
- create an IF and set its condition to: "VAR < 0"
- now point the true arrow to any assign/action etc that you want to be done
- and after your assigns/actions return to the IF
- now you only need to add 1 to VAR, for a specific condition, to leave the loop
just be carefull not to endup with an endless loop ;-)
It would be nice if it was possible to exit from the for each loop without traversing the hole list like .net, i know there is a other way to achive it  like if condition, but why not by for each loop.


Thanks
Rajendra



Merged from 'Exit from for each loop' (idea created on 2016-02-13 05:39:05 by Rajendra koranga), on 2016-10-25 08:30:56 by Goncalo Borrega
J.13 Feb
it wouldn't be a for-each loop anymore.



Merged from 'Exit from for each loop' (idea created on 2016-02-13 05:39:05 by Rajendra koranga), on 2016-10-25 08:30:56 by Goncalo Borrega
J.13 Feb
oh, and idea already proposed lots of times

Merged from 'Exit from for each loop' (idea created on 2016-02-13 05:39:05 by Rajendra koranga), on 2016-10-25 08:30:56 by Goncalo Borrega
What about creating a WHILE loop and and a way to iterate over the records in a list ? This would allow doing what is being asked.

Merged from 'Exit from for each loop' (idea created on 2016-02-13 05:39:05 by Rajendra koranga), on 2016-10-25 08:30:56 by Goncalo Borrega
Hi Paulo, 
                 Yes there is so many obtion, but idea is about to exit from the for each loop without traversing the hole list.

Merged from 'Exit from for each loop' (idea created on 2016-02-13 05:39:05 by Rajendra koranga), on 2016-10-25 08:30:56 by Goncalo Borrega