https://retellai.com/?utm_source=discord&utm_medium=seo logo
Logic split node equation returns else transition ...
# ❓・ai-evy-support
a
@AI Evy Logic split node equation returns else transition always even thought the variable checking in the equation is matching the value.
a
Thanks for tagging me @afrah_85175. I'll look through relevant sources and get back to you shortly.
### Answer The issue you're experiencing with Logic Split Node equations always returning the else transition is likely due to variable hydration timing [(1) ]() . When Retell starts a call, dynamic variables may not be fully loaded into memory for the flow engine yet . If a Logic Split node tries to read these variables too early, it sees null/empty values and takes the wrong path . The solution is to use a "hydration guard" - a condition that ensures the variable is loaded before comparing it . You can add a condition like:
Copy code
{{variable_name}} exists
or
Copy code
{{variable_name}} != ""
This makes sure the variable is loaded with something before you compare it to your expected value . For equation conditions in Logic Split nodes, remember that all equation conditions are evaluated first, then prompt conditions [(2) ]() . Equation conditions are evaluated from top to bottom, and the flow travels on the first condition that evaluates to true . You can only use variables that are passed in as dynamic variables for equation conditions . If you need to use information extracted by the LLM during the call, you should use prompt conditions instead .
​ To learn more, see the sources I considered: [[1] Logic Split Node Equation Not Working As Expected](https://discord.com/channels/1186424376300679209/1406310248691667125) [[2] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy Can you tell me how to add a tiny hop as mentioned here "first Split can run before variables are ready. Add a hydration guard (exists → then compare) or a tiny init hop and it will behave consistently." ?
a
Thanks for the follow-up, @afrah_85175. I'll get back to you soon.
### Answer Based on the available sources, I can explain what a "tiny init hop" means for addressing the variable hydration issue. A "tiny init hop" refers to adding a small intermediate node before your Logic Split node to allow dynamic variables to be properly loaded [(1) ]() . This gives the system time to hydrate the variables before the Logic Split node tries to evaluate them. Here's how you can implement this: Option 1: Add a Conversation Node with Skip Response Create a Conversation node before your Logic Split node with these settings [(2) ]() : - Enable "Skip Response" - when enabled, the transition will only have one edge that you can connect, and when agent is done talking, it will transition to the next node via that specific edge - Set a very brief static sentence or minimal prompt - Connect this node directly to your Logic Split node Option 2: Use a Hydration Guard Instead of or in addition to the init hop, add conditions to check if variables exist before comparing them [(1) ]() :
Copy code
{{variable_name}} exists
or
Copy code
{{variable_name}} != ""
This ensures the variable is loaded with something before you compare it to your expected value . The key issue is that when Retell starts a call, your retell_llm_dynamic_variables may not yet be "hydrated" (fully loaded into memory for the flow engine) . If a Split node tries to read it too early, it sees null/empty and takes the wrong path . The "tiny hop" approach gives the system a moment to properly load these variables before your Logic Split node attempts to evaluate them.
​ To learn more, see the sources I considered: [[1] Logic Split Node Equation Not Working As Expected](https://discord.com/channels/1186424376300679209/1406310248691667125) [[2] Conversation Node](https://docs.retellai.com/build/conversation-flow/conversation-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.