Routine does not continue

How about the following in Begin Routine

if practiceLoop.thisTrialN == 11:
     if score > 5:
          practiceLoop.finished=True 
          continueRoutine = False 
else:
     continueRoutine=False