PennController for IBEX › Forums › Support › Pick out items after randomization › Reply To: Pick out items after randomization
October 31, 2022 at 8:50 pm
#9651
nianpo
Participant
Hi Jeremy,
Thank you for your helpful reply! I tried the code you suggested (as below), but I still have a problem: I have 20 sets in total, but only 10 sentences with Distance ‘Short’ are shown now. No sentences with Distance ‘Long’ is shown. I guess that’s because my ‘Short’ and ‘Long’ sentences have the same set. Is there any chance to solve this problem?
Template("extable.csv", row =>
newTrial( row.Distance + row.Set,
defaultText
.center()
.print()
,
newText("sentence", row.Sentence)
,
newScale("acceptability", 7)
.labelsPosition("bottom")
.before( newText("very unnatural") )
.after( newText("very natural") )
.center()
.log()
.print()
.wait()
,
newText("space"," ")
,
newButton("proceed")
.center()
.print()
.wait('first')
,
clear()
))
Sequence( rshuffle(startsWith("Short") , rshuffle(startsWith("Long") )))
Thank you again for your kind help! Looking forward to hearing from you 🙂
Best wishes,
Nianpo