string comparison


Author
Message
Jens Bölte
Jens Bölte
Guru (9.5K reputation)Guru (9.5K reputation)Guru (9.5K reputation)Guru (9.5K reputation)Guru (9.5K reputation)Guru (9.5K reputation)Guru (9.5K reputation)Guru (9.5K reputation)Guru (9.5K reputation)
Group: Forum Members
Posts: 78, Visits: 60
Hello,

I am programming a dot-probe experiment. Probes will be "F" or "J" and appear either on the left or the right side of the screen. I like to check for the correctness of the answer which I tried to achieve in the following manner.

<text probe.right>
/ items = ("F","F","F","F","F","F","F","J","J","J","J","J","J","J","F","F","F","F","F","F","F","J","J","J","J","J","J","J")
/ select = noreplace
</text>

<trial t.pos.word.right>
/ ontrialbegin = [if (list.posi.probe.pos.right.nextvalue == 1) {text.probe.right.hposition = values.links; values.pos = values.links}
                                                            else {text.probe.right.hposition = values.rechts; values.pos = values.rechts}]
/ ontrialbegin = [if (text.probe.right.nextvalue == "F") {values.korrekt = 33} else {values.korrekt = 36}]
/ stimulusframes = [ 1 = fixation; 30 = maske; 31 = pos.word.right.tar, pos.word.right.dis; 42 = maske; 43 = probe.right]
/ validresponse = ("F", "J")
/ iscorrectresponse = [trial.t.pos.word.right.response == values.korrekt]
/ timeout = 3000
</trial>

However, values.korrekt evaluates always to 36 probably because "if(text.probe.right.nextvalue == "F") is always wrong. Suggestions are welcome.

Best wishes Jens



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search