https://discord.gg/botpress logo
conditions in text card
# 🤝help
f
hello do you know how to simply make it so that in a card text the bot says a certain word only if a certain workflow is not empty?
w
text cards can use Javascript expressions enclosed within double curly braces, so you could use a ternary something like :
{{theWorkflow.someCondition ? 'foo' : ''}}
f
Thx