I have three routines that are extremely similar, so much of their code is the same. The first is a practice round, the second are basic trials and the third more challenging trials. The code works great in both the practice and challenge routines, but is causing the basic routine to be skipped altogether. I discovered this by disabling codes until the routine would work again. I cannot figure out why the code isn’t working. The name of the mouse and message are correct. What other reason could cause this code to be the reason the routine is skipped? I am getting no error message, it is just skipping the routine. All three codes are in their respective Each Frame tabs. Here are the codes:
Practice
if mouse_prac.isPressedIn(Done_prac, buttons=[0]) and msgp=='success':
messp = 1
continueRoutine = False
elif mouse_prac.isPressedIn(Done_prac, buttons=[0]) and msgp != 'success':
messp = 0
continueRoutine = False
Challenge
if mouse_resp9.isPressedIn(Done_9, buttons=[0]) and msg9=='success':
mess9 = 1
continueRoutine = False
elif mouse_resp9.isPressedIn(Done_9, buttons=[0]) and msg9 != 'success':
mess9 = 0
continueRoutine = False
Basic Code (causing this routine to be skipped)
if mouse_resp.isPressedIn(Done_4, buttons=[0]) and msg4=='success':
mess4 = 1
continueRoutine = False
elif mouse_resp.isPressedIn(Done_4, buttons=[0]) and msg4 != 'success':
mess4 = 0
continueRoutine = False
Thank you