Only execute when input items are equal

Information on your n8n setup

  • n8n version:1.76.3
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS main
  • Running n8n via Docker
  • Operating system:Linux

Hi i want to be able to proced to a next node if inputs items length of A === equals that of B

for example i have a node that outputs 7 items and another 4. if ever they are equal then i want to do something. if not, another thing.

Thank you for your time,

Callum Torr

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

if 7 === 7 then we should true, if not false

You can use an expression to get the number of items that a node outputs:

length here are both equal to 1. what am im doing wrong ? i expect the to be 7 vs 5

Heeeelp :slight_smile:

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