Hi,
especially if B1 questions are many
Your requirement was:
Group B:
B1a
B1b
B2a
B2b
Two questions, not "many". You get what you ask for.
If there are really many questions you have to redesign your survey.
You may use subsurveys, a father-son approach, maybe you can use "tayloring".
What is the best, depends on the specific survey
And by the way:
Nearly each post in the forum referring to random numbers mentions this better approach. to avoid the Excel like behaviour of the "rand()" function.
And to add:
{if(randomisequestion>0,randomisequestion,rand(x,y))}
may fail.
E.g. if you want to create a random number between 0 and 100, or between -5 and +5.
So better
{if(is_empty(self.NAOK),rand(x,y),self.NAOK)}
As you find in the manual
[url]
www.limesurvey.org/manual/ExpressionScri...%22that%22_variables
[/url]
the variable "self" refers to the same question, while "that" refers to other questions.
Joffm