Adding variable values together (total) without continually adding

Dec 12, 2023

Hi all, I've trawled discussions but don't seem to be able to find what I need. 

See attached story. It's on the "Shirley video" layer (where a user will watch a video and then score someone accordingly under 4 categories). 

My issue is that the total keeps increasing if a user clicks an option and then changes their mind. I want the total score to only be the 4 category variables combined (without the ability to keep adding to the total score). 

Thanks!

4 Replies
Joanne Chen

Hi Tony, 

You can count the score not according to changes in these four variables but based on a new variable (let's call it 'Makingoptions') changes.

Detecting variable changes by four triggers:

Add value 1 to Makingoptions when (your four variables) changes

Recount the total score by five triggers:
1.Set CPOTCalculator to 0 when Makingoptions changes
2.Add(your four variables values) to CPOTCalculator when Makingoptions changes