PennController for IBEX › Forums › Support › Trial templates & tables › Reply To: Trial templates & tables
August 1, 2019 at 12:40 pm
#4049
Jeremy
Keymaster
Hi!
This code works just fine for me:
PennController.ResetPrefix(null); PennController.AddTable( "matable" , "List,Block,Item,expSet,grammaticallycorrect,SocStat_context,SocStat_contextVers,Sentence\n"+ "2,1,9,SocStat,yes,high,1,Ich denke&\#44; du bist gross.\n"+ "2,1,10,SocStat,yes,high,1,Ich Du weißt&\#44; er ist reich.\n"+ "2,1,11,SocStat,yes,high,1,Sie fühlt sich gut.\n"+ "2,1,12,SocStat,yes,high,1,Wir gehen gerne spazieren.\n"+ "2,1,13,SocStat,yes,high,2,Das Wetter ist schön." ) PennController.Template( "matable" , variable => PennController( newText(variable.Sentence) .print() , newButton("wait").print().wait() ) .log( "grammaticallycorrect" , variable.grammaticallycorrect ) )
Note that I added a button on which to click so that each trial doesn’t end as soon as it starts, and I replaced the commas in your sentence with , so they don’t get misinterpreted as separating cells.
I do see “yes” in my results file for all the trials (since it is the only value for grammaticallycorrect in your table).
Let me know if you have questions
Jeremy