• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Any easy way we can do a "contains any" match?

aaron

Member
Let's say we have an array of data.
Data = ["Thing1","Thing2","Thing3"]
Data1 = Thing1,Thing2,Thing3

Something like, `if "blah blah blah thing1" contains Data` or `Data1`; returns true.

Using the Filter, doing a contains any is currently not something I can easily do, I'd have a bunch of "or" statements for each "Thing".
Not sure if it's something I missed, but having it set to "contains any" of an array or a comma separated list would be great.
 
Last edited:
P

Pabblymember11

Guest
Hey @aaron

Could you please briefly elaborate on your concern, so that we can look into it and can suggest you accordingly?

Further, you could use the Filter action step with the "Contains" filter type in your workflow.

1669977438953.png
 

aaron

Member
Hello @Supreme

Basically I have a title. For an easy example I will call this title "shirt". Then I have a list of certain words to look for in that title. In my example I am looking for "shirt,hat" (shirt or hat). Using the Filter action step in this manner, results in a fail.

Yes for this it would be easy to make a separate OR statement for each word, "shirt" and "hat", but when I have 100s of keywords it gets really difficult.


1669989736852.png
 

aaron

Member
I may have made my example too basic.

Result 2 represents a product title and result 3 represents a list of words. Please see a more detailed example here.

1670059715066.png
 
P

Pabblymember11

Guest
Result 2 represents a product title and result 3 represents a list of words. Please see a more detailed example here.
Please share the name of the workflow in which you are trying the filter condition.
 
P

Pabblymember11

Guest
Hey @aaron

Regarding your filter condition, you need to first split the terms individually and then pass the terms in OR or in the AND condition.

1670233773853.png
 

aaron

Member
Hey @aaron

Regarding your filter condition, you need to first split the terms individually and then pass the terms in OR or in the AND condition.

View attachment 18690

Yes that would work as would just inputting them one by one. This result is only 7 items, but it is difficult when there are 100s of potential items I want to match. It'd be great if there was a "contains any" or a "contains match" that returns positive if it matches within a comma separated list orr a regex pattern.
 
Top