Various instructions throughout the trial refer to a person’s name, which should be retrieved from the conditions file variable “nm” on each trial
Online it’s showing up as “undefined”, so my ‘begin routine’ code:
pracPretrialText ='The following person is ' + nm + ', she will appear on-screen for a very short period of time, so please pay close attention. Click to continue.'
Shows up as “The following person is undefined, she will…” etc.
The text component has $pracPretrialText in the text field, set every repeat
Originally I had the whole line of code in the text field itself rather than creating the variable in a separate code component. Changing to a code component fixed a similar issue with my images, the path of which is set by concatenating a string much like the above, but this hasn’t fixed the text.