Multiple filter with list

I’m trying to filter a list of section views (however it could be anything) with a list of strings. I thought the best way to do it would be with python, however, if someone knows how to achieve it with nodes that would be great too!

Currently in my python script I’m having to put the index of the search list to find all possible values in the view list and return either true or false. Although this works, obviously this way the python script needs to be edited depending on the length of the search list. I would like if possible, something that could accept a variable length list.

Cheers.

 

search list in list

Ah nice, I hadn’t even thought about the lacing. Thanks!