How to Check data by IF node but Multi data


I went to check keyword from SET NODE but i have 20-50 keyword
I’d went to add Condition in NODE IF because it’ll have so much for if node

Hi @Panupol_Sonnuam, so you want to check if your “snippet” field contains at least one term from your “Subject Check” field which is a comma separated string, right?

I think the first step would be to convert your “Subject Check” string into a list and then compare each item individually. n8n’s If node does not have built-in support for such comparisons, but it should be possible to get this done with a bit of code implementing some(). Here’s an example workflow:

The code node adds a new binary property with its findings which can the be used in the IF node:

Hope this helps!


Thank You! It work.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.