using variable to set new variable
I am currently working on an experiment where my sketchpad presentation time is equal to:
var.fix3_duration= 3500-(var.response_time_rep_cible_1) -( var.fix1_duration)
so I put an inline script before my sketchpad with:
var.interm=var.response_time_rep_cible_1_mouse - var.fix1_duration
var.fix3_duration= 3500 -var.interm
I am setting the time in my sktechpad window as [var.fix3_duration].
However it is not working, I keep getting the message 'variable fix3.duration does not exist".
meanwhile, when I set the duration of my sktechpad to 1000 ms, I can see that both variable exist and change with each trial in my variables inspector (check images below).
I do not know how to resolve this issue, can anyone help please?