I’ve programmed an experiment in builder in which certain elements of the stimuli change depending on various factors.
E.g. if a healthy food is presented the fixation cross is green, if an unhealthy food is presented the fixation cross is red.
To allow this to happen I’ve added a code component:
if Category == ‘H’:
if Category == ‘UH’:
And in the text element the color is set to $color and set every frame.
I’ve also done this with stimulus size and location, all of which work perfectly on builder.
However when I try to run online I’m receiving the error that the terms (e.g. color) aren’t defined.
Does anyone have any solutions for this?