https://retellai.com/?utm_source=discord&utm_medium=seo logo
How to check a variable is empty or not via logic ...
# ❓・ai-evy-support
a
@AI Evy How to check a variable is empty or not via logic split node ?
a
Thanks for tagging me @afrah_85175. I'll look through relevant sources and get back to you shortly.
ions based on whether the variable content was mentioned.
### Answer Based on the available information, there are currently limitations with using Logic Split Nodes to check if variables are empty [(1) ]() [(2) ]() . Current Limitation: Logic Split Nodes cannot directly evaluate dynamic variables alone - they require the variable content to be mentioned in the conversation first . As confirmed by Retell staff, "using dynamic variables ALONE in a logic split node is confirmed to NOT WORK" and "equation based transition (including dynamic variables) is under dev" [(1) ]() . Current Workaround: To check if a variable is empty, you need to use a Conversation Node before the Logic Split Node that mentions the variable content [(1) ]() [(2) ]() . The Logic Split Node can then evaluate based on what was discussed in that conversation . Default Behavior for Missing Variables: When a dynamic variable has no assigned value, it remains in its raw form with the curly braces intact [(3) ]() . For example, if
user_name
is not provided, it will appear as
{{user_name}}
rather than being empty . Future Solution: Retell is working on equation-based transitions that will allow direct evaluation of dynamic variables in Logic Split Nodes [(1) ]() [(2) ]() . For now, you'll need to structure your flow with a Conversation Node that references the variable before using the Logic Split Node to make decis
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] HELP: Dynamic Variables and the NEW Logic Split Node](https://discord.com/channels/1186424376300679209/1359881066168582194) [[2] Help with Logic Split Nodes (and an example of a custom variable being used would be lovely!)](https://discord.com/channels/1186424376300679209/1358825261986087126) [[3] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​