https://retellai.com/?utm_source=discord&utm_medium=seo logo
I am having issues with a function node (Zipcode) ...
# ❓・ai-evy-support
c
@AI Evy I am having issues with a function node (Zipcode) transitioning to the next node. Within the function node is a tool "zipcode-lookup" with response variable: [is_serviced: $.is_serviced} I have set 2 equation transitions: {{ is_serviced }} = "true" {{ is_serviced }} = "false" fyi... the (" ") have been added by the retell automatically to the values. the "zipcode-lookup" tool calls to a n8n webhook that will determined if the zipcode from the caller is either "true" or "false". Tool Result tool_call_id: tool_call_c7643e {"is_serviced":true} <--- As you can see, the value is true however, the workflow keeps defaulting to choosing the false path. From n8n prior to the respond to webhook node, I have changed type to boolean and number but still have the same issue. I've read in the documentations that the conditions mainly expect a numeric value and will trigger a false if it's non numeric in the case for ==, contains and does not contains. I feel a bit stuck and need help to transition out of this node. Help!
a
Thanks for tagging me @cavan_mitchell. I'll look through relevant sources and get back to you shortly.
### Answer The issue is with your equation syntax. You need to use double equals (
==
) instead of single equals (
=
) for comparisons [(1) ]() . Change your equation transitions from: -
{{ is_serviced }} = "true"
-
{{ is_serviced }} = "false"
To: -
{{ is_serviced }} == "true"
-
{{ is_serviced }} == "false"
However, there's a second critical issue: your webhook is returning a boolean value (
true
) , but all dynamic variables in Retell must be strings [(2) ]() . Your tool result shows
{"is_serviced":true}
(boolean) , but your equation is comparing against the string
"true"
. To fix this completely: 1. Modify your n8n webhook to return the string
"true"
or
"false"
instead of boolean values 2. Use the correct comparison operator (
==
) in your equation transitions [(1) ]() The documentation confirms that equation conditions use double equals for comparisons, with examples like
{{user_location}} == "New York"
. Additionally, make sure "Wait for Result" is enabled on your Function Node so the transition waits for the function to complete before evaluating conditions [(3) ]() .
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[2] Discord message from @mariag8602 on 2025-10-22](https://discord.com/channels/1186424376300679209/1186462578310910112/1430614528017694881) [[3] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
in the function node equation transition, there are no (==) options