https://retellai.com/?utm_source=discord&utm_medium=seo logo
logic split is not working in a component
# ❓・ai-evy-support
m
@AI Evy logic split is not working in a component
a
Thanks for tagging me @Mikey. I'll look through relevant sources and get back to you shortly.
### Answer Logic Split Nodes can fail when variables aren't fully initialized at the time the node evaluates. If your split is positioned early in the conversation flow, the dynamic variables may not be "hydrated" (loaded into memory) yet, causing the node to take the wrong path. [(1) ]() Common issues and solutions: 1. **Variable timing**: Add a brief conversation node before the Logic Split Node to allow variables to fully initialize. 2. **Syntax in conditions**: When comparing variables, use the format
variable_name = value
without quotes in the condition editor (quotes are auto-populated) . 3. **Add a hydration guard**: Use a condition like
variable_name exists
or
variable_name != ""
to ensure the variable is loaded before comparing its value. 4. **Alternative approach**: If conditional logic continues to fail, use prompt-based logic instead—add instructions in your agent prompt to check the variable and let the LLM make the decision. The Logic Split Node evaluates conditions immediately when entered and branches to the corresponding destination. It doesn't speak and processes quickly. [(2) ]() Make sure your else destination is properly configured as a fallback when no conditions are met.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Logic Split Node Equation Not Working As Expected](https://discord.com/channels/1186424376300679209/1406310248691667125) [[2] Logic Split Node](https://docs.retellai.com/build/conversation-flow/logic-split-node) ​
u
@Mikey are u looking for dev?
m
No, but thanks for reaching out