Using filter by boolmask for extacting family types from another list

Dear all Dynamo experts,
I have two lists and want to extact family types (list 2) based on strings in another list (list 1)

  1. To describe more, I have a list of fan coils unit which is extracted from cad file. (list 1)

  2. I have extracted family type names (List 2)

  3. I want to match strings in list 1 with family type names on list 2

  4. And finally have a list of family type names which match list 1.

I know that I should use String.Contains and List.filterbyboolmask but I did not succeed in extracting familytype list.
Can anyone help?


@bhabdi Try this:

Or you can do something like this with BoolMask:

But you need to think of a way to tackle 800 being found in 1800.

Thank you very much @AmolShah I got the point. I should have used list tarnspose…
Yes I should Replace 800 CFM with 0800CFM to avoid that problem

1 Like