Reply To: Choosing subet of items to present

PennController for IBEX Forums Support Choosing subet of items to present Reply To: Choosing subet of items to present

#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