Loop through items, if all don't met criteria do x (add row to database)

Hey all,

I’m new to n8n and need help with step 5 of my workflow. I need to check if all items return False, and if so do Y.

My workflow:

  1. Make an HTTP Request to retrieve a list of items.
  2. Loop through each item in the list.
  3. Check if conditions X and Y are met for each item.
  4. If TRUE, create a row in Table A.
  5. If ALL items return FALSE, create a row in Table B.

Can be something like this.

1 Like

or code your conditions…

2 Likes

Hi @jabbson, i think this is the cleanest way, thanks for the help!

I’ve skipped the html node and had to put the http request response in a split node instead.

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