# Problem with block code

**URL:** <https://forum.dynamobim.com/t/problem-with-block-code/56071>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [October 11, 2020, 2:16am UTC](https://forum.dynamobim.com/t/problem-with-block-code/56071 "2020-10-11T02:16:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahito.com](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@Mahito.com](https://forum.dynamobim.com/u/Mahito.com)\
**Post date:** [October 11, 2020, 2:16am UTC](https://forum.dynamobim.com/t/problem-with-block-code/56071/1 "2020-10-11T02:16:09Z")

</div>

_Translated by moderators. Original post below the line._

* * *

hi i’m learning how to use dynamo and getting stuck with the code block. How can I avoid generating two lists?

 ![pregunta de code block](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/d/9d06a6dba9caacc4110e40e2ae84e55b41fe7b57.png)

I am guiding myself with this video. Thanks in advance  
 ![referente de la pregunta](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/7/a7d62a617c3e5988fcdf045340c30931d15c12ad.jpeg)

* * *

_Original post below_

* * *

hola, estoy aprendiendo a usar dynamo y me trabe con el bloque de codigo. ¿Como puedo hace para que no me genere dos listas?

 ![pregunta de code block](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/d/9d06a6dba9caacc4110e40e2ae84e55b41fe7b57.png)

I am guiding myself with this video. Thanks in advance  
 ![referente de la pregunta](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/7/a7d62a617c3e5988fcdf045340c30931d15c12ad.jpeg)

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [October 12, 2020, 9:38am UTC](https://forum.dynamobim.com/t/problem-with-block-code/56071/2 "2020-10-12T09:38:10Z")

</div>

![2020-10-12_11h37_13](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/5/f56820a3e96ae155e1ece61884c9124075e3ca25.png)  
…for sure there are other stuff to solve it
