PennController for IBEX › Forums › Support › Choosing subet of items to present › Reply To: Choosing subet of items to present
July 24, 2020 at 6:36 pm
#5863
Jeremy
Keymaster
Hi Sam,
PennController elements are not meant to be used outside a newTrial command. Just check the value of the Type column to pass the appropriate parameter to your newKey command:
Template( "statTableRandom.csv" , row => newTrial( addItem(row.Type) , newText(row.Word).print() , newKey( (row.Type=="Train"?" ":"yn") ).wait() ) )
Jeremy