Masking out one list from another

This seems like an easy problem, so maybe I’m overthinking it. I have a list of all project levels, and a list of levels that I want to mask out of the master list of levels. I’ve figured out how to do it, but I feel like there has to be a better way than my solution. The script I used below would need the user to manually add or deduct the level element, and then pair it with an IndexOf node, and then feed it into the list of indicies to remove… Seems counter intuitive.

I’m hoping there is a better way :neutral_face:

Hello, the answer could be there:

same stuff I’ve been trying

If there’s a common characteristic by which you can filter the levels you want to remove, then you could just do a string contains and search for that common chararcteristic.
Otherwise to improve upon the workflow you already have:

1 Like