Hi there,
I would like to randomly pipe one of several brand names into the question text of the following question, that is shopped at least more than once a year.
Q1 (Grid)
"How often do you shop guitars from the following brands?"
colums (List name: "FreqShopBrandsColList"):
Every month (1), Every other month (2), Once within 6 months (3), More than once a year (4), Once a year (5), Every other year (6), Even less than every other year (7)
rows (List name: "AidedBrandAwarenessList"):
Ibanez
Gibson
Fender
Jackson
Charvel
Mayones
Kiesel
Suhr
Schecter
Next, I created a list called "RandMoreThanOnceYearBran"
Its parent list is "AidedBrandAwarenessList"
For that, I used the following code:
Begin Unverified Perl {
if(VALUE("FreqShopBrandsColList") <= 4){
ADD("AidedBrandAwarenessList",1);}
if(VALUE("FreqShopBrandsColList") <= 4){
ADD("AidedBrandAwarenessList",2);}
if(VALUE("FreqShopBrandsColList") <= 4){
ADD("AidedBrandAwarenessList",3);}
if(VALUE("FreqShopBrandsColList") <= 4){
ADD("AidedBrandAwarenessList",4);}
if(VALUE("FreqShopBrandsColList") <= 4){
ADD("AidedBrandAwarenessList",5);}
if(VALUE("FreqShopBrandsColList") <= 4){
ADD("AidedBrandAwarenessList",6);}
if(VALUE("FreqShopBrandsColList") <= 4){
ADD("AidedBrandAwarenessList",7);}
if(VALUE("FreqShopBrandsColList") <= 4){
ADD("AidedBrandAwarenessList",8);}
if(VALUE("FreqShopBrandsColList") <= 4){
ADD("AidedBrandAwarenessList",9);}
RANDOMIZE();
}
End Unverified
Q2 (open text):
"Why do buy guitars from [%ListLabel(RandMoreThanOnceYearBran, 1)%] more than once a year?"
However, the piping of one of the brands that is shopped at least more than once a year doesn't work consistently.
Hope one of you might have an answer to my problem
Cheers
Leon