conditional valid response


Author
Message
troyh
troyh
Partner Member (638 reputation)Partner Member (638 reputation)Partner Member (638 reputation)Partner Member (638 reputation)Partner Member (638 reputation)Partner Member (638 reputation)Partner Member (638 reputation)Partner Member (638 reputation)Partner Member (638 reputation)
Group: Forum Members
Posts: 38, Visits: 190
Hello,
How can I make a trial's valid response contingent on which picture is randomly selected to display for that trial?
I have tried this:

<trial encoding>
/ ontrialbegin = [
    if(list.pics.items == picture.doors) values.responsekey = 2 || 3 else values.responsekey = 9 || 10;
]
/ stimulusframes = [1=list.pics; 2=scancode]
/ isvalidresponse = [
    trial.encoding.response == values.responsekey
]
</trial>

but nothing registers as a response in the trial

and I tried to attach a zip (never sure if this works, sometimes it seems like it does, other times not).

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