# Uipath Loop an Sequence

**URL:** <https://forum.uipath.com/t/uipath-loop-an-sequence/103827>\
**Category:** Help\
**Tags:** studio, activities, uiautomation\
**Created:** [March 20, 2019, 12:51pm UTC](https://forum.uipath.com/t/uipath-loop-an-sequence/103827 "2019-03-20T12:51:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivopath](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ivopath/32/81816_2.png) [@ivopath](https://forum.uipath.com/u/ivopath)\
**Post date:** [March 20, 2019, 12:51pm UTC](https://forum.uipath.com/t/uipath-loop-an-sequence/103827/1 "2019-03-20T12:51:57Z")

</div>

Hi everybody, I start using UiPath i already know do some basic automated things in Programs and Web.  
But i need help for one thing, i did a automatation in web, but i need to repeat one sequence like 50 times in this automatation, how i create a Loop for he repeat that sequence a single times?  
I Try search Loop’s in UiPath, and i found if i create a assign with a variable and put this variable +1 we create a loop but i dont know the type of this variable… This automatation is created by recording the clicks and i want do a loop of this sequence of clicks.  
Someone can help?  
Sorry if my english is bad, hope someone understand.  
Best regards,  
Ivo

---

<div class="post-metadata">

**Author:** ![Vivek\_Arunagiri](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vivek_arunagiri/32/558580_2.png) [@Vivek\_Arunagiri](https://forum.uipath.com/u/Vivek_Arunagiri)\
**Post date:** [March 20, 2019, 1:05pm UTC](https://forum.uipath.com/t/uipath-loop-an-sequence/103827/2 "2019-03-20T13:05:50Z")

</div>

Hi @ivopath,

Please follow the below steps.

- Create an Int32 variable with default value as 0.
- Add while activity with condition counter\>50.
- Inside the loop, add the repeated process that you need to perform.
- Increase the counter by 1.  
Please refer the below flow. 😃

 ![image](https://global.discourse-cdn.com/uipath/original/3X/a/6/a650aa678d20e28ecd79744ada3969573f10dc5f.png)

Regards,  
Vivek

---

<div class="post-metadata">

**Author:** ![c.ciprian](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/c.ciprian/32/22136_2.png) [@c.ciprian](https://forum.uipath.com/u/c.ciprian)\
**Post date:** [March 20, 2019, 1:18pm UTC](https://forum.uipath.com/t/uipath-loop-an-sequence/103827/3 "2019-03-20T13:18:05Z")

</div>

While counter \< 50

---

<div class="post-metadata">

**Author:** ![Vivek\_Arunagiri](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vivek_arunagiri/32/558580_2.png) [@Vivek\_Arunagiri](https://forum.uipath.com/u/Vivek_Arunagiri)\
**Post date:** [March 20, 2019, 1:19pm UTC](https://forum.uipath.com/t/uipath-loop-an-sequence/103827/4 "2019-03-20T13:19:29Z")

</div>

You are Correct 😃

---

<div class="post-metadata">

**Author:** ![ivopath](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ivopath/32/81816_2.png) [@ivopath](https://forum.uipath.com/u/ivopath)\
**Post date:** [March 20, 2019, 4:41pm UTC](https://forum.uipath.com/t/uipath-loop-an-sequence/103827/5 "2019-03-20T16:41:44Z")

</div>

thanks a lot my friend 🙂 Works perfect, im so happy yeah!  
Thanks thanks.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [March 23, 2019, 4:41pm UTC](https://forum.uipath.com/t/uipath-loop-an-sequence/103827/6 "2019-03-23T16:41:53Z")

</div>

Closed on March 23, 2019, 4:41pm UTC

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