If condition is met, terminate workflow is not working

I have an If statement inside a Do While loop, inside another Do While loop. The inner Do While captures to integers, x & y, which are added to a variable ‘sum’.

The if statement is set to terminate the workflow if sum=10. When I run the workflow, it is not terminated

Any advice?

You can remove that if and add the condition sum =10 in the do while itself , so that when the condiis met it will break the loop

Hello, Good Evening, If you just want to come out of loop when the Sum = 10 like Raj_esh mentioned use the condition in Do while instead of using If. If there is a reason for you to use IF condition instead of using the condition in do while then i am assuming that you are using Terminate workflow inside the If condition, instead of terminate workflow try using break activity and break the loop. based on sum value take the flow to the next step skip all the activities at the bottom using another if with sum =10 as condition and end the flow.

If non of the above solutions meet your requirements, kindly explain the your question in details so that we can help better.

Thank you

1 Like

Duh :man_facepalming: Appreciate your help!

1 Like

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