Hi @tomstafford, yes currently the trial handler attributes are not ready for use, as they are not updating in realtime. What you need to do instead is manually code your own trial and block counters. Take a look at this post for an example.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Convert Python to JavaScript (Pavlovia) with variables "intrinsically" created by PsychoPy | 1 | 911 | January 30, 2019 | |
| trials.thisN and trials.thisTrialN are constant in the online experiment | 15 | 3450 | April 21, 2021 | |
| "Variable Not Defined" Problem in Pavlovia | 3 | 519 | January 19, 2021 | |
| psychoJS.experiment.addData() doesn't save variable | 2 | 1583 | December 29, 2019 | |
| Adding and debugging custom code | 2 | 1522 | July 31, 2019 |