How to use condition in For Each Properties?

Hi Guys

I don’t understand how to set up a condition in a For Each Input properties.
The activity is waiting for a boolean and I did several test but nothing stop the loop … and the body is executed even if the boolean = False

image

Somebody know more about that ?

Thanks !

@olivier.garcin

can you share which condition you are passing or can you recheck the condition

cheers

define the condition variable is a scope over the for each scope

Show us what condition you tried.

Hi Shiva

at the start of my RPA, the user enter the hour when the RPA has to stop (let say 5:00 PM) and the RPA process each row of a datatable and do action for each row, until the hour is reached. So in the for each I test if it’s time to stop, set the boolean in the input condition to false, but the RPA do not stop. I have a solution with break activitie but I try to understand how works the condition in the for each property

as mentioned check the scope of the variable definition.
Also feel free share some more details e.g. XAML

The for each activity and condition also had some side effects when newly introduced. Maybe you can share with us which version of the UiPath.System.Activities is in use

Hi Peter

You pointed the right problem: the version of UiPath.activities was bugged about this feature. I upgraded the package and now all works fine :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.