Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] giving feedback about certain items in a variable

edited March 2014 in OpenSesame

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

  • edited 7:24PM

    if [CR] ==1:
    ans = 'YES'

    else: ans ='NO'

  • edited March 2014

    So my question is, can you reference to a certain entry in a variable in a feedback item?

  • edited 7:24PM

    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_response items, 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

  • edited 7:24PM

    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.

Sign In or Register to comment.