LimeSurvey version: 3.24.3
==================
Good afternoon,
I would like to define a variable within my survey whose value depends on some previous answer (from a yes/no "Are you colorblind?" List (radio) question). I then need to use this variable to load different images, adapted to colorblind people or not.
Let's call the variable X and the previous question Q0.
I understand that X must be created using an "Equation type" question, but I don't know how to implement a condition within it.
From what I grasped I should write a basic equation like:
if(Q0 == "No", "standard_", "colorblind_")
I would then like to use the variable X in a following question, to display different images depending on its value:
<img alt="" height="400" src="/upload/surveys/248689/images/{X}image.png" />
I tried this but it did not work. I don't know what I'm doing wrong. Maybe is "Q0" an inappropriate way to refer to this question in the equation formula?
I checked the Expression Manager documentation here
www.limesurvey.org/manual/expression_Manager
but could not find a way to do it.
Thank you very much for your help and I wish you a nice day,
Léa