+xHello,Thanks a lot for your solution. I tried toupper and .setitem but I failed on setting the proper index. Best wishes Jens
Hello,
I tried out your code and it worked perfectly, however, it does not work in this code. I miss the difference.
<text aufwaermtarget>
/items = aufwaermtargeti
/select = current(aufwaermprime)
</text>
<item aufwaermtargeti>
/161 = "Krimte"
/162 = "Heizung"
/163 = "Klimer"
/164 = "Wunde"
/165 = "Kohle"
/166 = "Farnseber"
/167 = "Tobel"
/168 = "Husten"
</item>
<text aufwaermprime>
/items = aufwaermprimes.items
/select = noreplace
</text>
<item aufwaermprimes.items>
/161 = "Kapuzenpullover"
/162 = "Gedankenkontrolle"
/163 = "Tapetenkleber"
/164 = "Schnittwunde"
/165 = "Abflussreiniger"
/166 = "Röhrenfernseher"
/167 = "Raucherhusten"
/168 = "Bürgerwehr"
</item>
<trial aufwaerm>
/ontrialbegin = [values.trialcounter += 1; values.index = text.aufwaermtarget.nextindex;
item.aufwaermtargeti.setitem(toupper(item.aufwaermtargeti.item(values.index)), values.index);]
/ontrialend = [values.prime = text.aufwaermprime.currentitem; values.target = text.aufwaermtarget.currentitem;]
/stimulusframes = [1 = fixation; 30 = maske; 61 = blank, aufwaermprime; 64 = blank, aufwaermtarget]
/validresponse = ("F", "J")
/response = timeout (2500)
/branch = [if(values.trialcounter == values.break_after_x) trial.pause]
</trial>