# Why will the "Remove If Not" Statement not work?

**URL:** <https://forum.dynamobim.com/t/why-will-the-remove-if-not-statement-not-work/921>\
**Category:** Packages\
**Created:** [January 14, 2015, 11:58am UTC](https://forum.dynamobim.com/t/why-will-the-remove-if-not-statement-not-work/921 "2015-01-14T11:58:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bill\_allen](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@bill\_allen](https://forum.dynamobim.com/u/bill_allen)\
**Post date:** [January 14, 2015, 11:58am UTC](https://forum.dynamobim.com/t/why-will-the-remove-if-not-statement-not-work/921/1 "2015-01-14T11:58:21Z")

</div>

I am just trying to select all areas from a specific level. ![Remove If Not](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/1X/3bff49cccfbf348945043d084419a6fad69e805f.jpg)

---

<div class="post-metadata">

**Author:** ![Ritesh\_Chandawar](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@Ritesh\_Chandawar](https://forum.dynamobim.com/u/Ritesh_Chandawar)\
**Post date:** [January 15, 2015, 2:43am UTC](https://forum.dynamobim.com/t/why-will-the-remove-if-not-statement-not-work/921/2 "2015-01-15T02:43:04Z")

</div>

Hello [Bill\_allen](http://dynamobim.com/forums/users/bill_allen/ "View bill\_allen's profile"),

Can you please attach picture rather than copy pasting image. I cant open to see details.

Thanks,

Ritesh

---

<div class="post-metadata">

**Author:** ![Mark\_Thorley](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mark\_Thorley](https://forum.dynamobim.com/u/Mark_Thorley)\
**Post date:** [January 15, 2015, 3:37am UTC](https://forum.dynamobim.com/t/why-will-the-remove-if-not-statement-not-work/921/3 "2015-01-15T03:37:34Z")

</div>

Bill, is it due to the fact what you are passing into the node is a list of elements and what you are trying to remove is a string. You could use a FilterByBoolMask like below instead.

![Area](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/a/ac3a0968879ebb71662e40df2e51268ce3cee417.png)

---

<div class="post-metadata">

**Author:** ![bill\_allen](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@bill\_allen](https://forum.dynamobim.com/u/bill_allen)\
**Post date:** [January 15, 2015, 10:16am UTC](https://forum.dynamobim.com/t/why-will-the-remove-if-not-statement-not-work/921/4 "2015-01-15T10:16:24Z")

</div>

Ritesh-Attachment seems to not be working anymore right now. I found out how to blow it up though.  
Mark, that method worked! Thanks! I would still be curious why the remove if not didn’t work just for my own knowledge

&nbsp;

![Remove If Not](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/a/a77a95b645a3d1a518f9834d8238b88a815dacfc.jpg)

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [January 15, 2015, 10:30pm UTC](https://forum.dynamobim.com/t/why-will-the-remove-if-not-statement-not-work/921/5 "2015-01-15T22:30:22Z")

</div>

This looks like a bug. It should work for elements as well.

![2015-01-16_114952](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/7/785c8a2a1b98c73c215d87d03ba02ddc829705e1.jpg)
