https://discord.gg/botpress logo
Which is best condition code for checking Ans from...
# 🤝help
r
I created a KB query in a Standard node. it seems more robust and easier to follow/debug than in Autonomous Node. To check if the Query KB has answer or not, I used 2 ways in Expression Transition like this: 1. workflow.Answer !== null && workflow.Answer !== undefined && workflow.Answer !== '' 2. turn.KnowledgeAgent?.answer?.length > 0 (i found this in Variable Documents) I found both do the same, the 1. maybe better (not clear), but can I make the 2. have same control like the 1. Thks alot