Filter list by list

I want to take all schedules in project, and grab few of them with bool mask. I got a list of schedule names I need to grab but == doesn’t grab a list properly. If I use == to filter by just one string it works fine but when I try to hook up a list it doesn’t collect equals properly.

@1bitBoolean ,

maybe something in this direction

KR

Andreas

which one?

@1bitBoolean ,

you have to test it… maybe also listlacing and listdepth

KR

Andreas

1 Like

Hi @1bitBoolean ,

There are multiple ways to approach this, what I recommend for you is one of the following:

  1. Use == set to cross lacing and use a List.AnyTrue (set to @L2) node afterwards, then use that input into the boolmask node.
  2. Use List.IndexOf and List.GetItemAtIndex instead of the == and List.FilterByBoolMask nodes.
  3. If you really want to be fancy, create a dictionary using the view names as keys and the views themselves as values, then you could use Dictionary.ValueByKey* to get the schedule by its name, no filtering needed.

*not sure about the exact name, writing this from memory.

Also @Draxl_Andreas you didn’t attach anything in your first reply.

1 Like

Hello

cordially
christian.stan

1 Like