Hello everyone!
I have a question regarding the random generator.
I designed a questionnaire, where I have 4 conditions (MQ01, MQ02, MQ03 and MQ04) and every participant is randomly assigned to one of the 4, to do that I created the following random generator:
if (value('RG01') == 1) {
question('MQ01');
} elseif (value('RG01') == 2) {
question('MQ02');
} elseif (value('RG01') == 3) {
question('MQ03');
} elseif (value('RG01') == 4) {
question('MQ04');
}
My problem is the following: If condition 4 occurs, I need to show an additional page in the introduction part (which is not shown in any other condition), and which I coded with the ID IN03, but I do not understand how to implement it in the generator, I tried like this, but it does not work:
if (value('RG01') == 1) {
question('MQ01');
} elseif (value('RG01') == 2) {
question('MQ02');
} elseif (value('RG01') == 3) {
question('MQ03');
} elseif (value('RG01') == 4) {
question('MQ04') and text (‘IN03’);
}
Could you please help me?
Thanks a lot :)