Using increment and decrement in UIPath

How to do perform increment and decrement in UIPath especially in using loops like Do While, While, etc.? Thank you.


By using count you can increment and decrement


1 Like

Assign Variable as Integer
then In loop You can increment and decrement it as
Assign A=0
In loop
for increment: A=A+1
For decrement: A=A-1

1 Like


1.Assign a counter before the loop starts with the number required depending on what you want to do…
2. In the loop you need to use the assigned variable as follow:
If increment: Variable +1
If decrement: Variable -1
3. Put an AND loop to satisfy the loop or an if loop inside the loop and add break if that satisfy to be true

Hope this helps… Enjoy

1 Like

@gulshiyaa @ImPratham45 @Shubham_Varshney Good day to all of you. Thank you very much for your help. I will work on it.


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