Branch Logic: How to set the ratio between two different numerical answers as a condition? | XM Community
Skip to main content

Hello everyone,

I am writing for the resolution of a problem concerning the conditions necessary to provide feedback.
So far, I have created different pages that should be displayed depending on the numerical answers that participants provide thanks to the "Branch Logic". However, I am not able to set a particular condition.
Specifically, a block with a video and two associated questions is presented. Once the two numerical answers have been given, I would like the next block to be presented according to the ratio of the numerical answers given in the two questions respectively. Is this possible?

 

Thanks in advance for your help

You can set a ratio embedded data field using a math expression, then check the ratio in branch logic. For example:

Set Embedded Data: ratio = $e{ q://QID1/ChoiceTextEntryValue / q://QID2/ChoiceTextEntryValue }

Branch: If Embedded Data ratio Is Greater than 0.5


@TomG , thank you so much for your assistance. It's working perfectly.


Leave a Reply