# Looping a complex algorithm

**URL:** <https://forum.dynamobim.com/t/looping-a-complex-algorithm/56908>\
**Category:** Revit\
**Tags:** loop\
**Created:** [November 4, 2020, 12:07pm UTC](https://forum.dynamobim.com/t/looping-a-complex-algorithm/56908 "2020-11-04T12:07:50Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![mellouze](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mellouze](https://forum.dynamobim.com/u/mellouze)\
**Post date:** [November 6, 2020, 4:33pm UTC](https://forum.dynamobim.com/t/looping-a-complex-algorithm/56908/7 "2020-11-06T16:33:14Z")

</div>

I agree with what was said above (it’s always better to avoid loops in Dynamo).  
However, I may have something that may help you (if loops is truly what you want). You could try something as described in the topic, you would “just” have to create a custom node that contains all your existing script. Hope this helps 🙂

> [@Force dynamo to rerun the node multiple times](https://forum.dynamobim.com/t/force-dynamo-to-rerun-the-node-multiple-times/24139):
>
> Hi everyone. Let’s say I have the script to create the circle which has 10\*t diameter (t is the sequence from 1 to 100). Is there any loop condition node to make dynamo create totally 100 circles with different diameter value (because there are 100 values of parameter t). Thank you.

---

_[View the full topic](https://forum.dynamobim.com/t/looping-a-complex-algorithm/56908)._
