| Reference | Downloads | Github

Problems with conditionally continuing a routine after updating to the latest PsychoPy version

OS: macOS 10.5
PsychoPy version: 3.2.0
Standard Standalone? (y/n) : Yes
What are you trying to achieve?: I have a variable level which is equal to 0 or 1. One of my routines should only be displayed if level = 1 .

What did you try to make it work?: In a the Begin Routine tab of a code component in this routine, I put

if level == 0:
    continueRoutine = False 

What specifically went wrong when you tried that?: Before updating to the latest version, this worked fine and the routine was only displayed in trials where the level was equal to 1. Now the routine is displayed in every trial, irrespective of the variable level.

Hi @lilly, this may be related to a regression in this functionality (soon to be fixed in the next release = see previous post). To fix in your current version, move this code to the “Each Frame” tab.