Thank you, it works now.
That's why you need to add multiple 'stimulusitem' columns as detailed in the docs.
Thank you Dave.
'stimulusitem' only gives me the content of one of the stimuli presented in the trial, not all of them.
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.
<openended situation_description>
...
/ ontrialend = [ values.state_item = text.state_item.item]
</openended>
... 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.
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>
I also tried to use item.state_items.caption, item.state_items, text.state_item, state_item.text etc. etc.
#1: Values are not limited to numbers. You can just as well store a string in them.
#2: Transforming a numerical value to a string is trivial to do in any reasonable data analysis application.
Dear Dave,
Right now my experiment is running and perfectly working, but I have one problem with my data.
I want to present the caption of state_item and action_item in the data file, so I can see which item the participants got presented during the experiment. I tried to do it with creating a value.state_item and action_item but this only returns a number in the data file, and I really want to see the caption.
Can you help me out?
With kind regards,
Johanna Quist
I finally managed to do it, thank you very much.
Then you need to set up proper dependencies between your various elements via their /select attributes.
This I indeed managed to do, but I do not manage to let the presented option match the presented item.
Right now I get a random item to which the participant gave the state-oriented answer, so that is ok, but the same holds for the presented option (action or state, dependent on condition). This option is also completely random, but this answer should be congruent with the presented item.
I hope you understand what I am trying to do here, and very much appreciate your help.