If this template helps then use it. If not then just delete and start from scratch.
PsychoPy version (e.g. 1.84.x): 23.1.3:
What are you trying to achieve?: I would like to connect 3 variables to be under one variable in the data file
Thank you!
If this template helps then use it. If not then just delete and start from scratch.
PsychoPy version (e.g. 1.84.x): 23.1.3:
What are you trying to achieve?: I would like to connect 3 variables to be under one variable in the data file
Thank you!
What I do is have a code component with an End Routine tab that copies the relevant information into columns called Score and RT. For example:
if useArrows:
score = arrow_resp.corr
elif useNumbers:
if number_resp.keys:
score = number_resp.corr
else:
score = num_resp.corr
if score:
responseText = 'Correct'
thisExp.addData('Score',score)