Hey everybody,
I hope this isn't a double post but I have been reading a lot of threads here during the last hours and couldn't seem to find a solution to my problem. So I really hope that you can help me.
Basically, I just want to include three different treatments in my survey and randomly select each participant into one of the treatments (of which each contains different questions).
I wanted to do so using a question group of the "equation type" called randnumber that includes
{if(randnumber>=1, randnumber, rand(1,3))}.
However, for some reason this doesn't seem to work for me. The question always returns a decimal number between 0 and 1 rather than an integer between 1 and 3.
In addition, even if I use ceil(rand(1,3)) instead of rand(1,3) and thus indeed do get "1" as a result, those questions for which I set the logic to ((randnumber=="1")) do not show up when going through the survey.
I guess those are, in fact, to distinct problems. But I really hope you can help me with that!
Thanks a lot in advance!
Laura
PS: I am using Version 1.92+ and have also tried the {if(is_empty(randnumber),rand(1,3),randnumber)} approach already.. without any changes
The topic has been locked.