Filtering a list when values are this OR that?

Hi there,

I’m trying to create a graph that allows me to quickly hide elements within a project. My situation is that I have 8 townhouses, where I have labelled each element as 1-8 depending what townhouse they are in.

I am placing TH1&2 floor plan on a sheet, TH3&4 on a sheet and so on. So I’m looking to create a graph where it filters out every element that doesn’t have the required townhouse number, mny only issue is that I cant combine the townhouse parameter value. I have tried the “OR” node which didn’t give me any love. It works if the input is 1 or 2 individually but not combined.

Any help would be greatly appreciated.

Check out List.GroupByKey node.

Hi @brodieLFGM9 ,

Try this simple code block if-statement:

In == 1 || In == 2 ? true : false ;