Relevance coding not working?

Mehr
3 Wochen 1 Tag her #177125 von PaulMRFGR
PaulMRFGR erstellte das Thema Relevance coding not working?
Hey!

So at the start of the survey, we have an equation question which gives each respondent a random number between 1-6. The question is called randnumber

if(is_empty(randnumber), rand(1, 6), randnumber)

Some questions in the survey only show for some respondents (depending on which random number they got at the start). I've set up the relevance on each question accordingly:

randnumber==1
randnumber==2
randnumber==3
randnumber==4
randnumber==5
randnumber==6

However, the relevance doesn't seem to work and it's skipping these questions where the relevance coding is setup? What am I doing wrong?

Thank you.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Wochen 1 Tag her #177127 von holch
holch antwortete auf das Thema: Relevance coding not working?
Have you checked if randnumber contains a number?

Besides this: Which version of LS are you using?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Wochen 1 Tag her #177128 von holch
holch antwortete auf das Thema: Relevance coding not working?
Have a look at the Demo on Limesurvey.org. I have created a questionnaire called "Randomtest". Works perfectly.

Also here as attachment.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
Anhang:

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
3 Wochen 12 Stunden her #177161 von PaulMRFGR
PaulMRFGR antwortete auf das Thema: Relevance coding not working?
Hey,

Thanks so much for the reply - this worked! I used your survey and managed to work out that it was actually something really stupid (I'd left in a colon on my equation which meant that the random numbers were coming out as :3 etc, so the relevance of randnumber==3 wasn't picking it up)..

Thank you again!

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha