How to add a condition

Describe the problem/error/question

I have use case, where my type is int and it will be a single value from 1-10 at a time.
Example:
type can 9 or 7 or 10 or 1

I want add a condition like this if 9 or 10 occurred then it will pass to A else B.
I am facing problem of adding it in if node, could anyone help in this with workflow example.

What is the error message (if any)?

NA

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

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

Please post your workflow using the </> button.

Here is a basic example for you

If this resolves your question, please mark this post as a :white_check_mark: Solution.

2 Likes

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