https://discord.gg/botpress logo
#🤝help
Displaying coding generated variables
# 🤝help
e

enough-advantage-51173

02/16/2024, 7:55 PM
Hey guys I did a math operation in code and stored it in a variable however I want the bot to display the result in a message and I canno access that variable with the @. What am I doing wrong?
f

fresh-fireman-491

02/16/2024, 7:58 PM
Hey To access variables outside of the specific execute code card you would have to create a variable in Botpress and use that.
Then you can use @ which would look something like @scope.variable where scope is either workflow, user or bot
e

enough-advantage-51173

02/16/2024, 8:38 PM
Thanks a lot mate
f

fresh-fireman-491

02/16/2024, 8:41 PM
You are very welcome