OS (e.g. Win10): Mac Big Sur
PsychoPy version (e.g. 1.84.x): 20.2.10
What are you trying to achieve?:
I am trying to code correct answer (1/0) using the textbox answer of a certain task.
What did you try to make it work?:
I compare the answer given in the textbox to the actual stimulusalso see:
I use the following code:
if text == textbox_4.text:
score = score + 1
score = score + 0
What specifically went wrong when you tried that?:
However, the score remains 1 even if the texts match. Does anyone have an idea what can go wrong here? The textbox_4 is defined under ‘ubentest’ and the text under ‘feedback’ in the same loop.
Best regards, Sanne