# Replace empty lists with another value

**URL:** <https://forum.dynamobim.com/t/replace-empty-lists-with-another-value/30227>\
**Category:** Lists-Logic\
**Tags:** dynamo\
**Created:** [January 3, 2019, 8:21am UTC](https://forum.dynamobim.com/t/replace-empty-lists-with-another-value/30227 "2019-01-03T08:21:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sed07](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@sed07](https://forum.dynamobim.com/u/sed07)\
**Post date:** [January 3, 2019, 8:21am UTC](https://forum.dynamobim.com/t/replace-empty-lists-with-another-value/30227/1 "2019-01-03T08:21:35Z")

</div>

Hi,

I’m trying to replace the empty lists in this example that I’ve recreated for simplicity. As you can below see it’s not working, including using a node that’s supposedly specifically made to deal with this. What’s the way to achieve this?

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

---

<div class="post-metadata">

**Author:** ![maltheshkathare](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@maltheshkathare](https://forum.dynamobim.com/u/maltheshkathare)\
**Post date:** [January 3, 2019, 10:10am UTC](https://forum.dynamobim.com/t/replace-empty-lists-with-another-value/30227/2 "2019-01-03T10:10:30Z")

</div>

Hi,

As the name suggests “Replace empty list”, you can see it is asking the replacement also to be a list but you are trying to replace a value with list. What you need to do is create a list with your value (No Description). Then connect tat list to Replacement.

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

Regards,  
Malthesh

---

<div class="post-metadata">

**Author:** ![sed07](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@sed07](https://forum.dynamobim.com/u/sed07)\
**Post date:** [January 3, 2019, 10:37am UTC](https://forum.dynamobim.com/t/replace-empty-lists-with-another-value/30227/3 "2019-01-03T10:37:23Z")

</div>

For some reason it’s still giving me null, even after I tried updating my clockwork package.

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

Anyway, I solved it by replacing the nulls afterwards with what I want. It’s strange that the same does not work as easily for empty lists. Thanks for the help!

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