PennController for IBEX › Forums › Support › Block n of n? › Reply To: Block n of n?
July 7, 2022 at 2:06 pm
#8263
Jeremy
Keymaster
Hi Simone,
Your code seems perfectly fine to me (assuming you have 9 blocks of 108 test trials—if you have 9 blocks of 12 trials, you need to write sepWithN("break", randomize("test"), 12)
). You could write your “break” trial like this, for example:
newTrial("break", newVar("block_n", 0).global().set(v=>v+1) , newVar("text").set(getVar("block_n")).set(v=>"You've just finished block "+v+" of 9") , newText("prompt", "").text(getVar("text")).print() , newButton("Next").print().wait() )
Jeremy