I can't tell you how to fix that without knowing what you did. You need to provide a lot more information on your implementation, provide code examples, or even the experiment, and specify what precise problem you have in order for me to properly help you.
I`m new programming
If you are new to programming, then I would recommend to take a step back and follow some of our tutorials before you start with your own experiment. Like that you can familiarize yourself with the software and understand the basics. Such that you are more independent to design your own task.
Comments
Hi @eduard , Hi @lvanderlinden
Thanks a lot for your message.
Here I am sharing a We Transfer link where you could download all the png files and my experiment.
Thanks a lot
B
Hi @bbTokyobb ,
Unless I'm missing something, I think you can do the following:
inline_scriptitem (in the trial sequence) like so:square-bracketnotation to refer to those variables in a subsequentsketchpaditem like so:For a working example, see here (note that the link will expire):
Does this help?
Cheers,
Lotje
Did you like my answer? Feel free to

Dear @lvanderlinden
Thank you so much for your help!
Altough I am not sure to totally understand, It works fine!
Thank you very much again for your help.
Benoit
Hi, I tried to replicate this lists qith the same code but it gives me an error in code
var.queso = stim_pairs[var.trial_no - 1][0]
var.nutri = stim_pairs[var.trial_no - 1][1]
Could someone help me?
Hi Irene,
I assume that is the same question as in here. So let's keep the discussion at one place, like that it is easier to not lose the overview.
For the record, the error message suggests, that your variable
var.trial_nois not a number but text. If you fix that, the error should disappear.Eduard
Thank you so much for your answer, how could I fix that? I`m new programming.
I can't tell you how to fix that without knowing what you did. You need to provide a lot more information on your implementation, provide code examples, or even the experiment, and specify what precise problem you have in order for me to properly help you.
I`m new programming
If you are new to programming, then I would recommend to take a step back and follow some of our tutorials before you start with your own experiment. Like that you can familiarize yourself with the software and understand the basics. Such that you are more independent to design your own task.
Eduard