How i want to create in the switch nodes routing rules

currently i using n8n workflow, their have switch nodes panel, i using mode rule. on the rules not on number format is not have in between expression, create me on the as expression in javascript.

I have value = 10000

this is the first rules
{{ $json.body.field_fnap_amountapplied[0].value >= 0 && $json.body.field_fnap_amountapplied[0].value <= 5000 }}

this is second rules
{{ Number($json.body.field_fnap_amountapplied[0].value)> 5000 && ($json.body.field_fnap_amountapplied[0].value) <= 15000 }}

My error is the workflow is detact my request value = 10000 on the first rules with is not correct. It must be on the second rules. Help me to have solution for the error output.

for the routing rules i am suing boolean with is is true.

  • n8n version: : 1.76.1

Thank you

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:

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