Get out of a "Do while"

I need help trying to get out of a “Do While” loop. I have an activity that looks through a long list of ticked items, it unticks all ticked items and ticked wanted items. Ones this is done, my automation seems to be stock in a loop that I don’t know how to get out off. Working examples will be very helpful

1 Like

@mb977 can you elaborate more about your query or attach your xaml .

2 Likes

@mb977,
if you want to get out of a Do while loop, then modify the variables which makes the while conditions to false.
Please explain your scenario for more specific answer.

@mb977,
Here the output of the Image Exists activity is a Boolean value, so instead of using boolTicked = True, use your Image Exists activity output in the condition of do while loop.

there is already an existing Image Exist prior to the IF statement

1 Like

@mb977,
That’s fine. But you want to check the existence if tick boxes after each ticking. right?
Then only you can exit from the do while loop, other wise the condition will be true every time and becomes an infinite loop

Thank you for your response. do you think you can show me a working sample


@mb977

1 Like

Thank you

2 Likes

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