How to set the counter as 0 everytime when run the loop condition

I want to handle an automation where if I ran the while loop with condition counter<=2 and set the counter as 0 by default and in assign increment the counter by 1…then I want if I run again this while loop counter should again start with 0 and not 3.

HI @Neha_Aggarwal1

You have to assign the Counter =0 inside the while loop like
image

The assign should be the first activity in the while so that every time it loops the counter will starts from 0

Hope this is what you need and it helps

Regards
Sudharsan

@Sudharsan_Ka thanku so much, it worked

HI @Neha_Aggarwal1

Kindly mark the appropriate post as solution.

Happy Automation!

Regards
Sudharsan

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