Use of textbox answer to code correct answer

Hi There,

Aha OK I’ve looked into this more and think I have it. Currently there is a bug whereby text.text is replaced with “default text” at the end of the routine (the developers @TParsons are aware of this and it is fixed for the next release). For your case though this is causing problems, because the correct answer is not “default text” of course…

For now, you need to check if the correct answer has been typed in the textbox on each frame. I have added the code component “checkCorrect” to your file to demonstrate this - the value “score” saved to the output file now increases.
PAT.psyexp (158.2 KB)

Hope this helps,
Becca