Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 4
»
iscorrectresponse gets evaluated even if response was not valid
iscorrectresponse gets evaluated even if response was not valid
Post Reply
Like
74
iscorrectresponse gets evaluated even if response was not valid
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Blackadder
Blackadder
posted 9 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 280,
Visits: 147
Hi All,
I have defined a trial in which certain probe stimuli are shown and the observer has to click on a specific one of those stimuli (i.e., inputdevice = mouse). All stimuli are presented in front of a screen-wide background stimulus covering the complete display area. This background stimulus is not contained in the /validresponse property.
The names of the actual probe stimuli all contain a trailing index number so that I should be able to do this:
/ iscorrectresponse = [evaluate(substring(trial.trialname.response,5,1)) == 5]
What I'd expect to happen is that the /iscorrectresponse property is only invoked when the observer clicks on one of the valid stimuli. It shall not be invoked if the observer clicks somewhere in the background.
This is not what happens. The /iscorrectresponse property is invoked every time the observer clicks anywhere. Hence, the code produces expression errors whenever the background stimulus - the name of which does not end with a number - is clicked.
Is that supposed to happen?
Reply
Like
74
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
iscorrectresponse gets evaluated even if response was not valid
Blackadder
-
9 Years Ago
Based on your description, I assume you do something along the lines...
Dave
-
9 Years Ago
Dear Dave, your code is spot-on. I'm going to compare our code to...
Blackadder
-
9 Years Ago
Post Reply
Like
74
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search