Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

trial counter

Hi all,

I'm trying to add a basic trial counter to my experiment ("You are on trial X of Y"). I have read the following threads:

I have specifically added Lotje's code from the first post to my experiment. Unfortunately, I get the following error when I try to run the experiment:

The variable 'count_trial_sequence' does not exist. Tip: Use the variable inspector (Ctrl+I) to see all variables.

item-stack: experiment[run].practice_loop[run].block_assignment[run].blocksequence[run].new_inline_script[run]
time: Mon Jul 16 11:57:07 2018

I've attached a picture of my experiment organization. The file itself is too large to attach, but please let me know if I can upload anything else to make it more clear.

Thanks for your help!


  • Hi,

    I'm not sure whether this will do the trick, but in the loop item, you can check the box skip on the first iteration or something like that. If this doesn't help, I would add an inline_script to the block_sequence (the first item or so) and add this line to its prepare phase: var.count_trial_sequence = 0

    Does that work?


Sign In or Register to comment.