Forum Replies Created
-
AuthorPosts
-
emorgan
ParticipantThanks very much!
emorgan
ParticipantThank you for such a quick response! I realized I glossed over too much in my question. We really do want to execute different PreloadZip commands depending on the counter value (because otherwise the amount of data to be loaded is way too large if we have to load all possible files for every participant). When we first tried to use the __counter_value_from_server__ variable (in a switch statement outside of the Template function), we got the error:
Unrecognized expression ‘__counter_value_from_server__’ (line 250) (PennController: 9)
We thought perhaps the problem was that that variable was only defined inside the Template, but clearly that’s not the problem. Do you know what the issue might be? Thank you again!
Best,
Emilyemorgan
ParticipantHi Jeremy,
To follow up on this, our template is designed with a variable and plays a specific audio file from a group. It seems that in order to use the __counter_value_from_server__, we need to be inside the template. Is that right? If so, where would that switch statement go if the code structure looks like:Template(“myTable.csv”, variable =>
newTrial(“music”,
newText (“Listen carefully to the melody.”)
.center()
.print()
,
newButton(“Play”)
.center()
.print()
.wait()
,
…Thank you again for your help!
-Emily
emorgan
ParticipantYes, thanks for clarifying–I did mean preloading from a zip file, and that solution is exactly what I was looking for! Thank you!
-
AuthorPosts