Reply To: Restart trial

PennController for IBEX Forums Support Restart trial Reply To: Restart trial

#7072
ekakoki
Participant

Thank you for the help! It runs!…But I also realized that I’d need to include the trial number in describing which audio to play, as each trial has a different correct answer. I tried simply adding the trial number as a new parameter and into the newAudio line of whichOne, but it came back with another undefined property error. I then tried taking the newAudio line out completely and using it immediately afterwards:

    ...whichOne([1,2,3,4,5,6], "response")
    ,
    newAudio("ex" + exNum + "o" + getVar("selected") + ".m4a").play().wait()

However, it won’t play anything upon clicking on the options, and it doesn’t let me continue to the next practice example. The demonstration link is here: https://farm.pcibex.net/r/EIXHMT/
Maybe I can’t use getVar in this context? But I’m not sure why not.