Howdy, Stranger!

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

Supported by

Conditioned 'If' particular response, present particular sketchpad in Open Sesame

edited January 3 in OpenSesame

We are trying to present a conditioned (if) sketchpad after particular response on the keyboard, something like the feedback, but in this case, there are no correct, or incorrect responses. The response will only condition which is going to be the next sketchpad to be presented.

Should it be done with an inline_script should? what kind of script should I use?

What do you suggest me to do?

Thank you!


  • Hi,

    If the response is going to be used to indicate whether a sketchpad will be called or not, you should use the run_if field of that sketchpad (you can access if you click on the sequence in the overview area. Then all the items of that sequence will be shown in the main window). Set this run if field to whatever you want the response to be. For example, [response] = 'left', if the response has to be the left arrow key.

    Good luck,


  • edited January 5

    Dear Edward,

    Thank you for your help, did you mean the "show_if" field, on the sketchpad? I have tried to use that field, but no success. I am using letters instead of arrows (z;x;c;b;n;m), so what I did was [response] = 'z','x','v' (for the left side responses. and [response] = 'b','n','m' (for the right side responses). I also tried using only one letter [response] = 'z' (for left side responses) and [response] = 'm' (for right side responses). I also modified that on the trial sequence.

    I am unsure about if the problem is because after one z, x, or c has been selected (left side) then a particular sketchpad should be called, and so on. Could it be the problem that different sketchpads are being called by the same instruction? for example 'z' or 'm'?

  • Hi,

    As mentioned, using feedback items instead of sketchpads does the trick. As an example, I changed the first sketchpad (If_Left_1) to a feedback item. Once changed it does work. Attached the experiment.

    [response] = 'z','x','v'

    This is not valid Python code. If you want to do that, you have to do this:

    [response] = 'z' or [response] = 'x' or [response] = 'v'

    maybe it also works if you write it like this:

    [response] in ('z','x','v')

    Does that help?


  • Dear Eduard,

    Yes, it worked,

    It is excellent, thank you, the flow now properly jumps to our desired feedback_item according to the pressed key. The only problem that now looks to happen, is that there seems to be a non programed delay between stimulus presentation, does that happen when using feedback_items?

    Thank you once again.


  • Well, you have first a feedback item in your sequence, followed by a sketchpad item. The first one has a duration of 5000, the second of 0. Only after that there is a response item. So, that would mean you have to wait for that amount of time before you can respond. Is that not what you want? Other than that I don't see where a delay could come from


  • That is correct, but when the program is running there are unexpected delays to process the response (the feedback item does not come immediately after the response on the keyboard) maybe it is a particular problem on this computer, I will make tests in different ones.

    The original topic of this forum was successfully resolved thanks to your help!

    I appreciate your kind support.

    Thank you.

  • Hi,

    Do you mean there is a delay between the screen with "Would you..." in the middle and "improve your chances" on the left and "reduce your chances" on the right and the feedback item that follows ("How would you decide if...")? If so, I am confused, for me there is no delay there. As soon as one of the response keys was pressed, the feedback is shown.


Sign In or Register to comment.