Using recode values from a multiple choice question for logic | XM Community
Skip to main content

I would like to use recode values from question A, which is a multiple choice, single answer question, for logic in a subsequent question, B.

Question A has 6 recode values: 0, 0.2, 0.4, 0.6, 0.8, and 1.

I would like question B to be displayed only if the recode value from question A is >= 0.4.

But the logic setting for question B allows me to use only the text answers from question A. This means I need to specify each posisble answer:
A=answer 3 (recode 0.4) OR A=answer 4 (0.6) OR A=answer 5 (0.8) OR A=answer 6 (1)

Is there a way to make this condition simpler, without using embedded variables or JavaScript? I would like to simply specify in the logic settings: A_recode>=0.4.

Thank you for your help.

Hi @kubato I doubt that this can be done without using embedded variables or JavaScript. If you want to shorten the standard logic i.e., A=answer 3 (recode 0.4) OR A=answer 4 (0.6) OR A=answer 5 (0.8) OR A=answer 6 (1), try using “IF  A=answer 1 (recode 0) AND A=answer 2 (0.2) IS NOT SELECTED”.


Leave a Reply