If this template helps then use it. If not then just delete and start from scratch.
OS (macOS Mojave):
PsychoPy version : 3.1.2
What are you trying to achieve?: I am trying to create a memory experiment where participants study a list of words and then try to free recall them (recall whichever word comes to mind). I need a few things: (1) they need to be able to see what they are typing (2) if the word they type is longer than 5 letters, they should be given feedback and told to try again (3) before every word they recall, a βprimeβ word needs to be presented, which should be a word from the study list EXCEPT any word that has already been recalled and any word that has already been presented as a prime
What did you try to make it work?: I have managed to get (1) to work using some code chunks. (2) is giving me an issue when I try to create the feedback loop and count the length of the input response, somehow it either skips the loop entirely or gives feedback even for 5-letter strings. (3) i dont know how to do this, but I am guessing I need to create a global variable that tracks all words that have been typed or used as primes? Is there a straightforward way to do this?
What specifically went wrong when you tried that?:
I tried doing a feedback loop where the nReps depended on a variable like feedbackRep, which would be assigned 0 or 1 depending on the length of the input string, but I think the issue is that the length is not being computed correctly. I am attaching the experiment as I have it right now, any help is appreciated!
15ItemRecall .psyexp (72.2 KB)15ItemRecall.xlsx (9.1 KB)