Hi Jeremy,
I’m using a couple of global variables to keep track of how many tries it takes for someone to have the correct typing input. I’m using a template for the exposure trials, and the logging of these variables (outside the newTrial()) is variably reliable. Sometimes, it does log the correct value, but other times, it gets logged as “undefined” or “NaN.”
Can you help me figure out how to get the variables correctly logged?
To debug, I have the variable values printed as Text objects, and those seem to be behaving normally, as does the final summary (the summary is displayed in the “break” trial in the Sequence).
Here is a link to the demo: https://farm.pcibex.net/r/odkLgQ/ (The logged lines are 274 and 276).
Thanks so much!