Can you please share a example template for switch node

Describe the problem/error/question

Can you please share an example for a switch node, I am going to use it for the first time.
like if message is A then code should “hello” and link should be “Yes” else if message is B then code should “hi” and link should be “Yes” else if message is C then code should “hey” and link should be “NO”

Thsi pattern in the node

What is the error message (if any)?

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:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Gouravdev :wave:

We have an example workflow here that might be really helpful for you to see: Filtering and branching data | n8n workflow template

The part in particular you might want to take a peek at is this one, where you can see how the switch node can handle multiple cases:

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