I have issue breaking the first loop in a nested loop scenario. UIPath is not moving to next line of code after breaking of first loop and just get into wait.
ex:
loop 1
line of code
line of code
loop 2
line of code
loop2 exception handler
break
end loop2
exception handler loop1
break; comment: it is coming to this line of code but not breaking and moving to āmore line of codeā
end loop1.
more lines of code.
You can stop the first for each loop using an if statement after.
For example, if you arrive to the last part of your inner loop, you can assign a boolean variable a value of āTrueā (or "false if you want), so when the first for starts again, in the other part of the first if statement you put a ābreakā.
Is there any possibility to remember the values when it comes out of the loop. I am automating through multiple folder within a subfolder so and checking subfolder consists files or not. If it consists then it has to do processing. Here I am using loop. So, when it done processing the file and go back to its loop the fileindex variable is getting 0. Please suggest on the same
Hi, i am using two for-each loop i want first for-each loop get value1 and second for-each loop get value1 after getting value1 from 2nd for-each it has to return to 1st for-each loop for value2 .I have given my screenshot and myproject given below .