Store correct answer

If this template helps then use it. If not then just delete and start from scratch.

OS : MacOS
PsychoPy version : 2023.1.3
What are you trying to achieve?:
I am trying to build my first experiment in Psychopy! It’s a basic finger tapping paradigm but I am struggling to input the correct answer into the keyboard component. The correct answer is the sequence of ‘n’,‘c’,‘b’,‘v’,‘n’ in that order.

What did you try to make it work?:
I have tried all inputs I can think of, such as: [‘n’,‘c’,‘b’,‘v’,‘n’] or ncbvn etc

What specifically went wrong when you tried that?:
When I open the data .csv file, the correct answers column always shows 0.

I’d be really grateful for advice on how to get the correct 5 letter sequence to store as a correct answer!

I think you would need to score it in code.

Are you saving all key presses? If so, then you may be able to check whether key_resp.keys == [‘n’,‘c’,‘b’,‘v’,‘n’] in End Routine

Thank you! Yes, needed to change that.