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
![](https://www.pcibex.net/wp-content/uploads/2018/10/IMG_8365-e1540835663655-150x150.jpg)
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