Adding up options - Am I being really dumb?

(Pete) #1

Sorry - this should be the easiest thing in the world to do, but I’m having a mental blank.

I’ve created a short questionnaire using ‘Ask a question’ - Each question has multiple choices with a value. At the end of the question I just need to calculate the total of all the values using Number > Calculate. So far so good.

{{test_1_question_1.parsed_answer}} + {{test_1_question_2.parsed_answer}} +{{test_1_question_3.parsed_answer}} + {{test_1_question_4.parsed_answer}} +{{test_1_question_5.parsed_answer}}

Am I being really thick? The flow just stops dead when it hits the calculation.

Thanks!

(Karen Barker) #2

Hi Pete,

This all sounds and looks correct. :thumbsup:

What do the interaction logs show for this action? Does the calculate action complete successfully with the correct answer? What are you wanting the flow to do after it’s calculated the answer values?

Calculate is a background action which doesn’t output anything to the bot itself. You can use the answer from this task in future messages or other calculate tasks if need be.