Storing string data in the value did not seem to work. Can you show me how to do it?
I tried for example:
<text state_item>/ items = state_items/ select = noreplace/ fontstyle = ("Arial", 3%, false, true, false, false, 5, 0)/ position = (50, 20)/ size = (900, 50)</text>
<values>
/ state_item = 0
</values>
<openended situation_description>
...
/ ontrialend = [ values.state_item = text.state_item.item]
</openended>
I also tried to use item.state_items.caption, item.state_items, text.state_item, state_item.text etc. etc.
None of these exist, and thus none of them will do anything. Available properties for each and every element are listed in the language reference.
... ought to be
/ ontrialend = [ values.state_item = text.state_item.currentitem]
None of that should be necessary though, since the respective item will be logged in one the data file's 'stimulusitem' columns (unless you misspecified the <data> element). For that see its documentation.
Thank you Dave.
'stimulusitem' only gives me the content of one of the stimuli presented in the trial, not all of them.
That's why you need to add multiple 'stimulusitem' columns as detailed in the docs.
Thank you, it works now.