PennController for IBEX › Forums › Support › multiple "success" or "failure" feedback options › Reply To: multiple "success" or "failure" feedback options
March 23, 2022 at 4:01 pm
#7966

Keymaster
Hi Sharon,
Just refer to the column of your table in the test
command:
Template( "table.csv" , row => newTrial( newText("Press A or B").print() , newKey("AB") .wait() .test.pressed( row.Correct ) .success( newText("Correct, the answer is "+row.Correct+"!").print() ) .failure( newText("No, the answer was "+row.Correct+".").print() ) , newButton("Next").print().wait() ) )
Jeremy