deep-jade•2y ago
Set variables don't seem to be recognised later in the flow when used in IF statements.
I have recorded a video of my problem, this better explains it. Would anyone be able to help?
https://www.loom.com/share/2307bf546213407cbc92046b4457b623?sid=e6a0fe0e-bd0d-4e93-a355-11a283f5a1d8
4 Replies
deep-jadeOP•2y ago
@W. Williams (SFT) or @NiKo | Voiceflow can you help on this one?
When you run your test, open the variable panel on the left hand side and check what's happening to your variable along the way. Then you can see if it's been de-populated.
You want to remove the double quotes in your condition.
https://www.loom.com/share/03c48d15bfa14865be905439896d720f?sid=fdffdf7c-e483-4a12-a1da-ca43803bad26
Loom
Setting Variables and Conditions in Code
In this video, I explain the importance of using single or double quotes when setting variables in code. I also discuss the difference between setting a variable and setting a condition, emphasizing the use of expressions. By the end of the video, viewers will understand how to properly set variables and conditions in their code. No action is re...
deep-jadeOP•2y ago
Thanks for that. Makes sense now.