miriam

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Keeping track of participant accuracy #5998
    miriam
    Participant

    Awesome, thank you! I had also tried using test.is() before but somehow it did not produce the intended results then. Now everything works 🙂

    in reply to: Keeping track of participant accuracy #5971
    miriam
    Participant

    Hi Jeremy,

    I now ran into a new problem when trying to access my accuracy variable during the experiment to provide feedback. Basically I just want to check whether the value lies between certain thresholds, but the statement below always seems to evaluate to false and print “Low accuracy”, even if I manually set accuracy to a higher value. Do you know how to fix this?

    newTrial("feedback",
        newVar("Acc", 0.8).global()
        ,
        newText("low_acc", "Low accuracy")
        ,
        newText("high_acc", "High accuracy")
        ,
        (
          getVar("Acc") > 0.5 ? [
            getText("high_acc").print()
          ] : [
            getText("low_acc").print()
          ]
        )
        ,
        newButton("Exit")
            .center()
            .print()
            .wait()
    )
    in reply to: Keeping track of participant accuracy #5968
    miriam
    Participant

    Thanks a lot Jeremy, both solutions work perfectly for me!

Viewing 3 posts - 1 through 3 (of 3 total)