Clickable objects leading to error

OS (e.g. Win11):
PsychoPy version (e.g. 2025.2.4):
Standard Standalone Installation? (y)
URL of experiment: None yet
Do you want it to also run locally? (y)
What are you trying to achieve?: Replicating a previously created online study with a feedback component

What did you try to make it work?: I have tried storing the variable names as a list under another variable name and using that variable name in the clickable stimulus area. Removing the correct answer stored area. Running with just run object at a time. Changing and reviewing my code component several times. Changing the names of my objects.

Link to the most relevant existing thread you have found: "looks like your correct answer variable needs to be set to update" :/

recognition_heuristic feedback online vers.psyexp (166.3 KB)

What specifically went wrong when you tried that?:
TypeError: Cannot read properties of undefined (reading ‘contains’) Try to run the experiment again. If the error persists, contact the experiment designer. This error occurs whenever I click an object in my judgement loop (I’ve attached the psychopy file itself if you would like to look). I keep getting error messages that my variables within the mouse click need to update, but I read somewhere that its a false error message.

Hello @derekgr

Do you have a toy version of your experiment that demonstrates the problem, rather than your full-scale experiment?

Best wishes Jens

can you upload the condition loop.csv?

I’d recommend that you remove square brackets.

condition loop.csv (364 Bytes)

Here it is!

Hi Wakecarter, I have tried both with and without brackets and the error persists.

Best,

Derek

problem demo 1.psyexp (150.2 KB)

Not exactly sure if this is what you meant, but this is the two routines of interest.

Best,

Derek