conditional statement using "noresponse"


Author
Message
KatrinaMcDonough
KatrinaMcDonough
Partner Member (660 reputation)Partner Member (660 reputation)Partner Member (660 reputation)Partner Member (660 reputation)Partner Member (660 reputation)Partner Member (660 reputation)Partner Member (660 reputation)Partner Member (660 reputation)Partner Member (660 reputation)
Group: Forum Members
Posts: 45, Visits: 235
Hello, 
I am trying to program a conditional statement for the correct response value, so that participants with odd and even subject numbers have different tasks - either press the spacebar or don't respond. However, the I get a message saying "'noresponse' Expression contains an unknown element or property name." It works when I select a different response (i.e. changing "noresponse" to just a different key). 


<shape redcircle>
/ shape = circle
/ color = red
/ size = (20%, 20%)
/ position = (50%, 50%)
</shape>

<shape bluecircle>
/ shape = circle
/ color = blue
/ size = (20%, 20%)
/ position = (50%, 50%)
</shape>

<text errormessage>
/ items = ("incorrect")
</text>

<text correctmessage>
/ items = ("correct")
</text>

<expressions>
/CorrectCounterbalanced1 = if ( floor(mod(script.subjectid, 2)) != 0 ) {57;} else {noresponse;}
</expressions>

<trial circles>
/ stimulusframes = [1 = redcircle]
/ inputdevice = keyboard
/ validresponse = (57, noresponse)
/ correctresponse = (expressions.CorrectCounterbalanced1)
/ trialduration = 2000
/ errormessage = true(errormessage, 2000)
/ correctmessage = true(correctmessage, 2000)
</trial>

<block block>
/ trials = [1-5=circles]
</block>
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Reading This Topic

Explore
Messages
Mentions
Search