Hi,
1. Why did you not answer the questions at the beginning?
2. A lss export of the relevant questions (e.g. a prototype that shows the structure) is always better than a long explanation.
Well, you have a question Q1 (single?) that asks the dietary preferences. like
1: meat
2: fish
3: vegetarian
4: vegan
So you get the conditions for
"vegans": Q1==4
"vegetarians": Q1=

"fish": Q1==2
"no grass eater"; Q1==1 OR Q1==2 (or the same: Q1 lt 3)
And your "vegan/vegetarian/pesc" group:Q1>1 AND Q1<5
Now you add your random number to select the control resp. treatment groups
like
(Q1>1 AND Q1<5) AND randnumber==1
(Q1>1 AND Q1<5) AND randnumber==2
(Q1>1 AND Q1<5) AND randnumber=

You see that you only can use the "greater than" and "less than" operators if you use numerical codes, not the offered "A1", "A2".
With these alphanumerical codes you have to say Q1=="A2" OR Q1=="A3" OR Q1=="A4"
Joffm