Hi, thanks for the response. I put the real loop name in my experiment, I just put myloopname as a filler for explaining the circumstances. I double-checked the names of the loops.
And yet the error message is quite unambiguous - it’s not a PsychoPy-specific thing, but a fundamental Python error of trying to refer to an object that doesn’t (yet) exist. So you need to show us exactly what you are actually doing - show us the custom code you are using, including where and when it runs, along with screenshots of your flow panel.
thanks so much for this solution
however, what happens if i need to exit out of two loops simultaneously (or one of two)?
If you use a current version of PsychoPy you should be able to name the loops you want to exit.