# Loops - Design Script issue

**URL:** <https://forum.dynamobim.com/t/loops-design-script-issue/55682>\
**Category:** Revit\
**Tags:** revit, designscript, dynamo\
**Created:** [September 29, 2020, 3:14pm UTC](https://forum.dynamobim.com/t/loops-design-script-issue/55682 "2020-09-29T15:14:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arun\_Prakash](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arun_prakash/32/89820_2.png) [@Arun\_Prakash](https://forum.dynamobim.com/u/Arun_Prakash)\
**Post date:** [September 29, 2020, 3:14pm UTC](https://forum.dynamobim.com/t/loops-design-script-issue/55682/1 "2020-09-29T15:14:33Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/6/065fda363d2b9a9d3650ba65462e9c004318f7d2.png)

How can I make it a loop, Now i get only one value?

---

<div class="post-metadata">

**Author:** ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)\
**Post date:** [September 29, 2020, 4:15pm UTC](https://forum.dynamobim.com/t/loops-design-script-issue/55682/2 "2020-09-29T16:15:30Z")

</div>

A quick search and this may get you there.

> [@Nested For Loops in Design Script Impertitive Blocks](https://forum.dynamobim.com/t/nested-for-loops-in-design-script-impertitive-blocks/34125/3):
>
> Oh my goodness. Thank you so much @Thomas_Mahon . Not sure I would have ever gotten to that configuration myself. (See attached) As my Python programming skills develop - and I learn to love Python - I’m having a lot of trouble understanding where Python ends and DesignScript begins.

---

<div class="post-metadata">

**Author:** ![AmolShah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amolshah/32/103244_2.png) [@AmolShah](https://forum.dynamobim.com/u/AmolShah)\
**Post date:** [September 29, 2020, 4:20pm UTC](https://forum.dynamobim.com/t/loops-design-script-issue/55682/3 "2020-09-29T16:20:01Z")

</div>

Not the most elegant loop but this should give you an idea

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/a/7a19e24ebcb33b4178ad3f6d6cfdb78a95079612.jpeg)

---

<div class="post-metadata">

**Author:** ![Arun\_Prakash](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arun_prakash/32/89820_2.png) [@Arun\_Prakash](https://forum.dynamobim.com/u/Arun_Prakash)\
**Post date:** [September 29, 2020, 4:26pm UTC](https://forum.dynamobim.com/t/loops-design-script-issue/55682/4 "2020-09-29T16:26:39Z")

</div>

Thanks for the repsonse @SeanP 🙂

---

<div class="post-metadata">

**Author:** ![Arun\_Prakash](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/arun_prakash/32/89820_2.png) [@Arun\_Prakash](https://forum.dynamobim.com/u/Arun_Prakash)\
**Post date:** [September 29, 2020, 4:27pm UTC](https://forum.dynamobim.com/t/loops-design-script-issue/55682/5 "2020-09-29T16:27:04Z")

</div>

Thanks @AmolShah it worked perfectly 🙂
