# thisIndex not updated within loop

**URL:** <https://discourse.psychopy.org/t/thisindex-not-updated-within-loop/12082>\
**Category:** Online experiments\
**Created:** [April 3, 2020, 8:38pm UTC](https://discourse.psychopy.org/t/thisindex-not-updated-within-loop/12082 "2020-04-03T20:38:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tlan](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tlan](https://discourse.psychopy.org/u/tlan)\
**Post date:** [April 3, 2020, 8:38pm UTC](https://discourse.psychopy.org/t/thisindex-not-updated-within-loop/12082/1 "2020-04-03T20:38:50Z")

</div>

Hi everyone,

I’m not sure if this has been fixed. But it seems like **thisIndex** (_the index of the current trial in the conditions list_) is still not updated in online experiments.

I read from [this post](https://discourse.psychopy.org/t/use-thisrepn-correct-online-experiment-created-with-builder/8167) and know that index like **thisTrialN** can be easily updated by adding a counter in the code component, but I’m not sure how to update **thisIndex**.

I appreciate any help.

Thanks!
