# Removing empty and/or Null value from list?

**URL:** <https://forum.dynamobim.com/t/removing-empty-and-or-null-value-from-list/41195>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [September 27, 2019, 1:01pm UTC](https://forum.dynamobim.com/t/removing-empty-and-or-null-value-from-list/41195 "2019-09-27T13:01:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefano85](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@Stefano85](https://forum.dynamobim.com/u/Stefano85)\
**Post date:** [September 27, 2019, 1:01pm UTC](https://forum.dynamobim.com/t/removing-empty-and-or-null-value-from-list/41195/1 "2019-09-27T13:01:20Z")

</div>

Hii everyone.

I need some help.  
The problem is I have a list with different values consisting out of interegers, strings and sometimes null values. This list wil allways be different in vallue and amount of list items  
the question is how do i clean up the list, so that i only get the items in the list that have a value?

here is an example  
 ![Cleanlist](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/b/1b3d284c17a341e468b8c4782ea4ec35623a7191.png)

---

<div class="post-metadata">

**Author:** ![James\_Washbourne](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@James\_Washbourne](https://forum.dynamobim.com/u/James_Washbourne)\
**Post date:** [September 27, 2019, 1:04pm UTC](https://forum.dynamobim.com/t/removing-empty-and-or-null-value-from-list/41195/2 "2019-09-27T13:04:54Z")

</div>

> [@Stefano85](#):
>
> e problem is I have a list with different values consisting out of interegers, strings and sometimes null values. This list wil allways be different in vallue and amount of list items  
> the question is how do i clean up the list, so that i only get the items in the list that have a value?

I’m sure there’s a remove null node somewhere.

---

<div class="post-metadata">

**Author:** ![Stefano85](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@Stefano85](https://forum.dynamobim.com/u/Stefano85)\
**Post date:** [September 27, 2019, 1:08pm UTC](https://forum.dynamobim.com/t/removing-empty-and-or-null-value-from-list/41195/3 "2019-09-27T13:08:41Z")

</div>

hey @James_Washbourne

Yes there is, but this does not remove the empty values from the list.

 ![Cleanlist2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/f/7f04dc023deba5ac352b89f9130e2c05d33dc963.png)

---

<div class="post-metadata">

**Author:** ![James\_Washbourne](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@James\_Washbourne](https://forum.dynamobim.com/u/James_Washbourne)\
**Post date:** [September 27, 2019, 1:13pm UTC](https://forum.dynamobim.com/t/removing-empty-and-or-null-value-from-list/41195/4 "2019-09-27T13:13:39Z")

</div>

there you go.

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

---

<div class="post-metadata">

**Author:** ![Stefano85](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@Stefano85](https://forum.dynamobim.com/u/Stefano85)\
**Post date:** [September 27, 2019, 1:21pm UTC](https://forum.dynamobim.com/t/removing-empty-and-or-null-value-from-list/41195/5 "2019-09-27T13:21:08Z")

</div>

@James_Washbourne

Nicee!!

Thank u for your reaction, great help!

---

<div class="post-metadata">

**Author:** ![James\_Washbourne](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@James\_Washbourne](https://forum.dynamobim.com/u/James_Washbourne)\
**Post date:** [September 27, 2019, 4:36pm UTC](https://forum.dynamobim.com/t/removing-empty-and-or-null-value-from-list/41195/6 "2019-09-27T16:36:53Z")

</div>

No problem
