Reply To: Conditionals in self=paced reading

PennController for IBEX Forums Support Conditionals in self=paced reading Reply To: Conditionals in self=paced reading

#6623
Jeremy
Keymaster

Hello,

The particular case you are describing is easy enough to implement:

newTrial(
    newController("DashedSentence", {s: "This is an example sentence"})
        .print()
        .log()
        .wait()
        .remove()
    ,
    newText("Do you want to read the sentence again?")
        .print()
    ,
    newButton("Yes")
        .after( newButton("No").callback(end()) )
        .print()
        .wait()
    ,
    clear()
    ,
    newController("DashedSentence", {s: "This is an example sentence"})
        .print()
        .log()
        .wait()
        .remove()
)

Note that this only gives the option to read the sentence again once. Giving the option to re-read it as many times as the participant wants would be a little more complicated

Jeremy