# Replace empty list and keep list structure

**URL:** <https://forum.dynamobim.com/t/replace-empty-list-and-keep-list-structure/30389>\
**Category:** Uncategorized\
**Created:** [January 7, 2019, 9:30pm UTC](https://forum.dynamobim.com/t/replace-empty-list-and-keep-list-structure/30389 "2019-01-07T21:30:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![r.vermeulen](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@r.vermeulen](https://forum.dynamobim.com/u/r.vermeulen)\
**Post date:** [January 7, 2019, 9:30pm UTC](https://forum.dynamobim.com/t/replace-empty-list-and-keep-list-structure/30389/1 "2019-01-07T21:30:03Z")

</div>

Anyone knows how to replace the empty list by “0” and remain the structure as it is (lists and sublists)? List.ReplaceEmptyList creates separate subs. Not wanted.

 ![Capture2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/6/36248d9887107903085beaa126feca238b59e0a1.png)  
 ![Capture3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/a/5a59272548b789b5260efb49a8ca47b726f70c5d.png)

---

<div class="post-metadata">

**Author:** ![salvatoredragotta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/salvatoredragotta/32/10078_2.png) [@salvatoredragotta](https://forum.dynamobim.com/u/salvatoredragotta)\
**Post date:** [January 7, 2019, 10:20pm UTC](https://forum.dynamobim.com/t/replace-empty-list-and-keep-list-structure/30389/2 "2019-01-07T22:20:34Z")

</div>

@r.vermeulen I suggest you to search the forum. This has been solved multiple times

> [@Replace empty lists with another value](https://forum.dynamobim.com/t/replace-empty-lists-with-another-value/30227/2):
>
> 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. Regards, Malthesh
