Repeat Practice block until accuracy more than than 75%
I am trying to create an experiment where participants have to complete a block with 75% accuracy before moving to the next one.
Using this code, I am able to get the block repeated once, but not more than once
if var.acc < 75:
exp.items["GoodBad_Loop"].prepare()
exp.items["GoodBad_Loop"].run()
if var.acc > 75:
exp.items["Main_loop"].prepare()
exp.items["Main_loop"].run()
What can I do?
Comments
Did you put this code in the
block_loopitself, or afterwards? I suppose, this code is run only once. It is important to understand that executing an item, does not move where the experiment is currently at towards the item that you want to execute. For Example, suppose you have three block loops, with an inline_script in between the second and third block. If in theinline_script, you execute block number 1 again, the order in which the items will be called is following: Block 1 --> Block 2 --> Inline_script --> Block 1 --> Block 3. The code taht is executed in the inline_script is only an "intermezzo", it won't make you move up the sequence and reinitiated everything from that point onwards.Does this make sense?
Eduard