https://retellai.com/?utm_source=discord&utm_medium=seo logo
j
@AI Evy if I put in !{{dynamic_variable}} will it deterministcally spit out the opposites?
a
Thanks for tagging me @jsdknvm_92719. I'll look through relevant sources and get back to you shortly.
### Answer No, the
!{{dynamic_variable}}
syntax is not a supported feature in Retell AI for deterministically outputting opposites or negations. [(1) ]() Dynamic variables in Retell AI use the
{{variable_name}}
syntax and are designed to inject personalized data into your agent's responses. When a dynamic variable has no assigned value, it remains in its raw form with the curly braces intact. If you need conditional logic based on whether a variable is set or not, you can check for unset variables in Conversation Flow using equations like
{{user_name}} exists
, which returns true if the variable is set. In prompts, you can add conditional logic to handle unset variables, such as instructing the agent to use a generic greeting if the variable appears with curly braces. There's no built-in negation operator or "opposite" functionality for dynamic variables in Retell AI's documentation.
​ To learn more, see the sources I considered: [[1] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.