How do I get specific Foliage Types out of an overlap?

can you use naming conventions to pass through an “if” statement to toggle eligibility?
e.g. Make sure all your grass meshes have “grass” in the name then use that string as a filter?