How to conditionally filter?

I have something like this:

When you look at .match(), I am matching two variables.
I want match to execute whenever the variables are not empty strings.
In this case they are empty and it throws an error.
EBF2C234-16AC-4551-9436-9AC7C3E00908.jpg
Was this page helpful?