Millisecond Forums

Surveypage/slider timeout -> incorrect

https://forums.millisecond.com/Topic18884.aspx

By ldobb - 4/11/2016

Hi Dave,
I've looked at a lot of older posts about sliders and whether or not a response registers, etc. I am having trouble getting my script to communicate that if the surveypage times out, the response shouldn't be considered correct. Nothing I do seems to work :(




By Dave - 4/11/2016

Set up a <values> entry

<values>
/ correct = 0
</values>

and set that value to 0 (incorrect) if the page times out (latency >= 10000).

Log that value to the data file.

Also,

#1: You cannot set a trial's correct-property. The correct-property is read-only.

/ ontrialend = [if (slider.stim_slider1.response == "50" && slider.stim_slider2.response == "50" && surveypage.rating.latency < 10000)
                surveypage.rating.correct == true]

#2: Even if it were possible to set it, you'd be using the wrong operator. == is a logical comparison operator, the assignment operator is =.
By ldobb - 4/11/2016

Thanks, Dave, appreciate it so much - I'm getting the hang of things slowly!