Reply To: multiple "success" or "failure" feedback options

PennController for IBEX Forums Support multiple "success" or "failure" feedback options Reply To: multiple "success" or "failure" feedback options

#7966
Jeremy
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