Button only allows correct answer to move to next Q

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

PsychoPy version v2023.2.3
I am trying to make an experiment where participants see a jumbled word(anagram) and have to either solve it correctly to submit , or give up and skip to the next. I have an excel sheet attached with Ana_stim and corrAns.

How do I get it so only typed responses that correctly match the corrAns column can move on? New to code so I’ve just been doing point and click builder too!

Try the following in the Each Frame tab of a code component

if corrAns in textbox.text.lower(): # Assuming corrAns is already in lower case
     continueRoutine = False

You could use if corrAns == textbox.text.lower(): but using in means you won’t have a wrong answer if you have a leading space or hard return.