Hi There,
I'm having some trouble using item functions.
Specifically, I can call up the items as text items and directly from an item list <%list.somelist.nextvalue%> as a text item, but not succesfully as pictures.
When the items get called up as text they appear within double quotation marks (").
This makes me believe that when I use picture.somepicture.setitem(list.somelist.currentvalue,values.somevalue) it is storing the item as "samplevalue.jpg" rather than samplevalue.jpg. I think this would explain why it can successfully present text stored using text.sometext.setitem(list.somelist.currentvalue,values.somevalue) but not pictures using the above method.
Is this correct?
If so, how do I get around this? I can't use any of the string based functions to trim out the " marks as these are delimitters in the script.
I've attached a sample script and associated files.
Adjust the following working line in trial.contingentdecision:
/ stimulustimes = [1=blanker, keptobjects_t]
to
/ stimulustimes = [1=blanker, keptobjects_p]
to try to present it as a picture rather than text and it will stop working (keptobjects_v will use <%list.somelist.nextvalue%> instead as a text stimulus)
Cheers,