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
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.