Somebody help me please?

Hello everyone, I am attempting to implement an AND / OR operation between two expressions in an n8n Switch node, but I am having difficulty getting it to function correctly. I have explored various options, but none appear to be effective.

Could someone please clarify how to accomplish this correctly? It’s somewhat urgent, thank you in advance!

Hey @Cascade In n8n’s Switch node, I think you can actually implement AND/OR logic by using multiple conditions and configuring how they interact, for instance you can add multiple conditions in the same Switch node
2. Configure the matching behavior:

  • ANY = OR logic (if ANY condition matches)
  • ALL = AND logic (if ALL conditions match)

Also ensure you’re using proper JavaScript syntax
Make sure you’re comparing the correct data types
Check if fields exist before comparing And lastly Use appropriate quotes for string comparisons.

1 Like

Thank you bud, i will check all of this and get back soon.

You are welcome, I will like to know if this resolved he issues as well.

@Cascade,
how did you get the AND dropdown in the switch node? I’ve been looking for this and can’t figure it out. are you on cloud or community edition?

/nixed

Should be IF node. Switch didn’t show and or in my n8n either.

@darrell_tw, I found out the AI assist in cloud creates switch nodes with AND/OR if you instruct it to, though I can’t find a way create them in the community edition. does anyone know if this is an old feature? when I asked ai assist from n8n cloud, it instructed me on the steps to take in order to create the AND/OR, but the options are not there.