PennController for IBEX › Forums › Support › .test(var) not working › Reply To: .test(var) not working
March 23, 2020 at 12:54 pm
#4901
Jeremy
Keymaster
Glad that fixed the issue
Just a note that the following works just fine (using PennController 1.7) so maybe the problem was due to some other interaction?
AddTable("testTable", `Naming_Order,A_set_image,B_set_image AB,boyTalking.png,girlTalking.png BA,boyTalking.png,girlTalking.png`) Template("testTable", row=> newTrial( newVar('left_word',""), newVar('right_word',""), newVar('name_order', row.Naming_Order), getVar('name_order') .test.is('AB') .success( getVar('left_word') .set(row.A_set_image), getVar('right_word') .set(row.B_set_image) ) .failure( getVar('left_word') .set(row.B_set_image), getVar('right_word') .set(row.A_set_image) ) , newText().text( getVar("left_word") ).print(), newText().text( getVar("right_word") ).print() , newButton("next").print().wait() ) )