Hi! I think I have posted this a couple of times in the forum. I really am not well versed with Python and definitely, any help would be appreciated greatly.
I am having problems skipping a condition in my routine to move onto the next task in the loop. I have a total of 3 games/test, and2 games are counterbalanced and the other should run once the test trial has been completed. For easy reference, I will just name them games A, B, and C.
The structure of the experiment is as follow:
Start
- Instruction of practice & Start of Practice round for game A
- Instruction of test round & start of Test round of Game A
- Instruction of practice & Start of Practice round for game B
- Instruction of test round & start of Test round of Game B
- Instruction of practice & Start of Practice round for game C
- Instruction of test round & start of Test round of Game C
End
This is the current set up:
There are 24 stimuli in the practiceLoop that will be separated into 2 rounds of 12 stimuli, where the 2nd round of stimuli will not be presented if the participant scores at least 8 correct in the first 12 rounds and will move onto to the test round, else they will do the 2nd round of practice and if they don’t score at least 8 correct, the test round will be skipped and it will move onto the next game. I have a code as such in the End Routine Tab:
score = score + 1
if practiceLoop.thisN == 11 and score >= 8:
practiceLoop.finished = True
elif practiceLoop.thisN == 23 and score <=5:
practiceLoop.finished = False
It doesn’t seem to be working and the experiment stops if the participant fails the 2nd round of practice as well. I don’t want it to be a sequential score recording and want the scores to be of 2 different rounds (i.e., the score of 1st round should not be added into the 2nd round). Am I doing something wrong, or is the coding wrong?