Running out of the loop while the condition is not satisfied

Hi, I am facing an issue in Do While Loop. If you see my condition.
image

Now you see it’s continuing in the loop even the condition doesn’t match.
image

This is strange even the currentRowCount is greater than totalRowCount.
It should come out from the loop but it is still iterating in the loop.

@Palaniyappan @lakshman can you see what is the issue. It should break once the condition got fail, but it’s still continue the loop.

Hi
We are missing with some variable assignment with value
Can I have a view on the do while loop a screenshot if possible

Cheers @balkishan

1 Like

@balkishan

Is the currentRowsCount and totalRowsCount are variables of type Integer or not ?

1 Like

Please see
image

Don’t get confuse with the While loop which I put inside Do While.

1 Like

Yes both are Int32 and Global variable, That’s way they increment bro.

1 Like

Great
So what is inside the while loop
Are we using this variable count and those two variables inside the while loop
Cheers @balkishan

1 Like

Yes, I am infringement the currentRowCount on every iteration of While loop inside the Do While.

totalRowCount is my fixed. Once extract the data.

@balkishan

Show me screenshot of data inside While loop also.

Yah what is the process inside the while loo
@balkishan

1 Like

@Palaniyappan @lakshman

in the while Loop, Iterate each page of the portal 10 times. Nothing but a click on the tag!.
There is no issue with the While Loop but strange is why the Do While is not breaking after the condition is not satisfied.

1 Like

We are doing a assign activity with CurrentRowsCount inside this while loop na
May I know what is the value part of that assign activity
Cheers @balkishan

1 Like

@balkishan

Here you used While loop inside Do-While loop. First it will perform steps mentioned in the While loop and it will keep continue until mentioned condition got failed. And then only it will come out from this loop and check condition mentioned in Do-While Loop activity.

If Count value become 13 then it will come out of this loop here.

1 Like

Before Do While Loop I have assigned this image

And inside the While Loop I am increment this by 1.
here is image

1 Like

Okay let me try this.

1 Like

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