Matchtext to data tree issue

Hi All,

I am having an issue with a script I am making that finds certain items in a data tree and isolates them for some operations I want to do further down the track.
As shown in the image, the script is isolating one of the items in my list from the data tree, but I want it to work for all items in the list I provide. Is there something I am missing?
Any advice would be appreciated!

textmatch.gh (22.5 KB)

Hi Henry,

I haven’t used Match Text before, but it will output “True if the text adheres to all supplied patterns”
The way I interpret it is that the Shower is showing because it adhereres to your pattern - a shower after a Toilet.

If you only search for one word you will get 2 toilets and 1 shower.

So what you need is some way to search for Toilet OR Shower

Hopefully someone else can chime in and help with that.

Apparantly the regex syntax for OR is |
So you can use Toilet|Shower in the RegEx input

1 Like

Thanks Lars, inserting “|” between the items I want to search for solves the problem!