[solved] giving feedback about certain items in a variable
I have developed a basic memory task and i would wish to present feedback at the end detailing which items were remembered correctly. I wish to present a table with all the items in the variables and then some indication about whether they remember it correctly. So i want something like this..
Spade YES
Carrot YES
Jug NO
Box YES
I have created a variable CR in which indicates the correct response expected for each item (i have used a touch screen grid with 6 possible responses). So the Touch_Response item's correct response field is [CR]. In a feedback item can i refer to different entries of a variable? So something like,
for [OBJECT(3)], [ans]
and put in some code like if [CR] ==1: YES

Comments
if [CR] ==1:
ans = 'YES'
else: ans ='NO'
So my question is, can you reference to a certain entry in a variable in a feedback item?
Hi Joshua,
Basically, you're asking whether OpenSesame variables can be lists, and whether you can use indexing to refer to a specific entry in a list, right? No, I'm afraid that this is not possible. A variable simply has one single value, and there are no complex types like lists. (Of course, this is only true of the simplified OpenSesame script, not of Python script.)
So if you have six different
touch_responseitems, each of which requires a different response, then you would end up with six different variables (CR1,CR2, etc.). Does that clear things up?Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
that is exactly what i am asking! sorry i wasn't clearer.
OK i see your point. I will have to change my sequence around and have individual touch response items in order to refer to each item individually in my feedback.
Thanks mate. You are fantastic.