# List.FilterByBoolMask in CBN

**URL:** <https://forum.dynamobim.com/t/list-filterbyboolmask-in-cbn/1595>\
**Category:** Packages\
**Created:** [June 8, 2015, 9:20am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-in-cbn/1595 "2015-06-08T09:20:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc\_Tavenier](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@Marc\_Tavenier](https://forum.dynamobim.com/u/Marc_Tavenier)\
**Post date:** [June 8, 2015, 9:20am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-in-cbn/1595/1 "2015-06-08T09:20:21Z")

</div>

Hi all,

I’m going over some scripts of mine trying to compact them down and while doing so I stumbled upon a strange thing in the code block node. I’m trying to use the function List.FilterByBoolMask in a CBN, but it’s acting strange. The output of the square box doesn’t match the output of the “\>” as you can see in the image below. The Watch node says it’s an empty list.

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

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

So I started fiddling around with the List.FilterByBoolMask and none of these ‘workarounds’ are working:

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

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

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

&nbsp;

&nbsp;

&nbsp;

![4](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/3/34664b28cdc6149b487088e77c42be886342a0d7.png)

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

I tested it in both 0.8.0 and 0.8.1RC and both are giving the same result.

Can anyone help me or tell me what I’m doing wrong? Any advise is greatly appreciated.

&nbsp;

Thanks in advance,

Marc

&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:** [June 9, 2015, 12:19am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-in-cbn/1595/2 "2015-06-09T00:19:46Z")

</div>

Hi Marc,

The “List.FilterByBoolMask” acts similarly to a dictionary in other languages. You have to call the indices of the output by its key name similar to this:

![2015-06-09_13-42-11](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/3/385009105252cecfe982caa8dc95f539e04ae351.png)

---

<div class="post-metadata">

**Author:** ![Marc\_Tavenier](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@Marc\_Tavenier](https://forum.dynamobim.com/u/Marc_Tavenier)\
**Post date:** [June 9, 2015, 12:47am UTC](https://forum.dynamobim.com/t/list-filterbyboolmask-in-cbn/1595/3 "2015-06-09T00:47:06Z")

</div>

Thank you very much Dimitar, I knew I was missing something real simple.
