List.FilterByBoolMask bug?

Hello.
I’m not sure if I’m doing something wrong, but it looks like List.FilterByBoolMask command is bugged.

It filters the list by given criteria just right, but problem starts, when I try to extract my results. For some reason a reference to a sublist returns an “The index is outside a given range” error.
I’m pretty sure the syntax is right, as it works with any other list with that structure.

I’d use List.FilterByBoolMas dynamo node, but unfortunately, I need to run it in a loop so using a code block makes it so much easier.

Any ideas how to overcome the problem or is it going to be fixed anytime in a future?
I’m using Dynamo 1.3.2 with some packages installed.

If you try Node to code on the FilterByBooleanMask node, you will get something like pict below.
Even if your “result” is displayed as a nested list, it is actually a dictionary so it doesn’t have any index 0, but keys "in"/"out"

2 Likes

Hi @esmariusz
Looks good to me:

I think your using Dynamo 1.3x. Try this:

3 Likes

in Dynamo 2 works fine, update yours

I have the same output as @esmariusz, but using “node to code” I get the same code block as @alvpickmans.

@Kulkul second picture works in dynamo 1.3.2 :slight_smile:

result[“in”] works just fine :slight_smile:
Thanx for a fast reply

@esmariusz Please mark the post as solved. You’re welcome!