# Filter Mask by List of Values

**URL:** <https://forum.dynamobim.com/t/filter-mask-by-list-of-values/2036>\
**Category:** Packages\
**Created:** [August 27, 2015, 6:47pm UTC](https://forum.dynamobim.com/t/filter-mask-by-list-of-values/2036 "2015-08-27T18:47:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Engel1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mike_engel1/32/9075_2.png) [@Mike\_Engel1](https://forum.dynamobim.com/u/Mike_Engel1)\
**Post date:** [August 27, 2015, 6:47pm UTC](https://forum.dynamobim.com/t/filter-mask-by-list-of-values/2036/1 "2015-08-27T18:47:28Z")

</div>

So after much research I’m able gather information and then filter by Boolean list mask and gain the values I need. However in order to do this for multiple values I find myself duplicating all of the nodes changing a few values and doing this repeatedly for each value. So the next step I’m attempting is to rather than filter by a single value, I would like to filter by list of values hopefully reducing and simplifying in the process The specific instance is to filter by room name. On a related note is it possible to mask by a portion of the value - Ex QQ where I have a series of rooms labeled QQ-1, QQ-2, etc - my goal would be to return all values which contain QQ.

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [August 27, 2015, 8:44pm UTC](https://forum.dynamobim.com/t/filter-mask-by-list-of-values/2036/2 "2015-08-27T20:44:19Z")

</div>

![20150828-2](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/c/cb2f8ee5ef85b9fe3c53ed8d18206ccda7dde3e9.jpg)

---

<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:** [August 27, 2015, 9:28pm UTC](https://forum.dynamobim.com/t/filter-mask-by-list-of-values/2036/3 "2015-08-27T21:28:27Z")

</div>

Hey Mike,

Another option is to use the “==” node with cross-lacing, combine that with “List.AnyTrue” from the clockwork package with lacing set to longest and use that as your mask:

![2015-08-28_10-56-56](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/3/33910b486b1fd5dbf222a76e3bb05bb9ceacb37d.png)

---

<div class="post-metadata">

**Author:** ![Jimmy\_G](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@Jimmy\_G](https://forum.dynamobim.com/u/Jimmy_G)\
**Post date:** [August 27, 2015, 10:23pm UTC](https://forum.dynamobim.com/t/filter-mask-by-list-of-values/2036/4 "2015-08-27T22:23:11Z")

</div>

I’ve been looking for something similar and using the workflow of the OP at the moment.

Is there a simple way that would combine the 2 methods. So if I want a true result for anything that contained “QQ” and “YY” rather than having to do the operation twice then joining the lists afterwards?

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [August 27, 2015, 10:45pm UTC](https://forum.dynamobim.com/t/filter-mask-by-list-of-values/2036/5 "2015-08-27T22:45:32Z")

</div>

![20150828-3](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/5/5fc3245500a69d4bae42a69a13bb64c1a2b03e3a.jpg)

---

<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:** [August 27, 2015, 11:58pm UTC](https://forum.dynamobim.com/t/filter-mask-by-list-of-values/2036/6 "2015-08-27T23:58:56Z")

</div>

Jimmy, did you try changing the lacing in Vikram’s example?

![2015-08-28_13-28-36](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/1/199f97b82bd2d0c649ce46d4e5bd2ff901575c4c.png)

---

<div class="post-metadata">

**Author:** ![Jimmy\_G](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@Jimmy\_G](https://forum.dynamobim.com/u/Jimmy_G)\
**Post date:** [August 28, 2015, 12:57am UTC](https://forum.dynamobim.com/t/filter-mask-by-list-of-values/2036/7 "2015-08-28T00:57:16Z")

</div>

Must’ve been a lacing problem because I’ve tried to feed string contains a list before with no luck. Cheers guys.

---

<div class="post-metadata">

**Author:** ![Mike\_Engel1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mike_engel1/32/9075_2.png) [@Mike\_Engel1](https://forum.dynamobim.com/u/Mike_Engel1)\
**Post date:** [August 28, 2015, 9:46am UTC](https://forum.dynamobim.com/t/filter-mask-by-list-of-values/2036/8 "2015-08-28T09:46:17Z")

</div>

Thank you for all your help - the answers worked great.
