# Repeated function

**URL:** <https://forum.dynamobim.com/t/repeated-function/21011>\
**Category:** DesignScript\
**Tags:** function\
**Created:** [April 13, 2018, 9:27am UTC](https://forum.dynamobim.com/t/repeated-function/21011 "2018-04-13T09:27:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![robert.ek](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@robert.ek](https://forum.dynamobim.com/u/robert.ek)\
**Post date:** [April 13, 2018, 9:27am UTC](https://forum.dynamobim.com/t/repeated-function/21011/1 "2018-04-13T09:27:01Z")

</div>

Hi,  
I’m trying to repeat a function x number of times such as example below but repeated to t100 = test(t99); for instance.  
Is it possible?

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

---

<div class="post-metadata">

**Author:** ![Fiesta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/fiesta/32/31914_2.png) [@Fiesta](https://forum.dynamobim.com/u/Fiesta)\
**Post date:** [April 13, 2018, 9:46am UTC](https://forum.dynamobim.com/t/repeated-function/21011/2 "2018-04-13T09:46:22Z")

</div>

look at this:  
[http://dynamobim.org/forums/topic/loops-in-code-blocks/](http://dynamobim.org/forums/topic/loops-in-code-blocks/)

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [April 13, 2018, 9:46am UTC](https://forum.dynamobim.com/t/repeated-function/21011/3 "2018-04-13T09:46:33Z")

</div>

Like so?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/d/2d76ca4852e7148c0e8ff60bda100ff8ee2c89c3.png)

This learning resource for Design Script can be used for gaining general knowledge of the working within code blocks:

> **[DesignScriptGuide.pdf](https://dynamobim.org/wp-content/links/DesignScriptGuide.pdf)**
>
> 343.24 KB

---

<div class="post-metadata">

**Author:** ![robert.ek](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@robert.ek](https://forum.dynamobim.com/u/robert.ek)\
**Post date:** [April 13, 2018, 9:51am UTC](https://forum.dynamobim.com/t/repeated-function/21011/4 "2018-04-13T09:51:57Z")

</div>

Perfect! Thanks!

---

<div class="post-metadata">

**Author:** ![robert.ek](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@robert.ek](https://forum.dynamobim.com/u/robert.ek)\
**Post date:** [April 17, 2018, 7:36am UTC](https://forum.dynamobim.com/t/repeated-function/21011/5 "2018-04-17T07:36:14Z")

</div>

🙂

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/3/430621680d7075c38a40b65bc2847ea93d67c8c6.png)
