Hi,
in my questionnaire I have an equation-type question "Valence" containing {rand(1,2)}.
In a subsequent question, I want to load one of three random images associated to this condition:
Code:
<img alt="" src="/Mediennutzung/Limesurvey2/upload/surveys/937241/images/{rand(1,3)}{if (Valence == 1, 'pos', 'neg')}.jpg" style="width: 800px;" />
However, when I test the question group, I just get "2<span id='LEMtailor_Q_33821_52'>neg</span>.jpg" as a response and the browser can't load the image. I then placed the equation in a group before the one containing the picture. This time an image was displayed, but completely unrelated to the condition from the valence-variable (e.g. "1" resulted both in "pos" and in "neg").
Am I doing something wrong?
Thank you for your help!
Benny