Skip to content
Discussion options

You must be logged in to vote

This one took me a while to figure out 😅
The problem is that you've set up the test trial to run with timeline variables, but then you pushed it directly onto the main experiment timeline with this line:

timeline.push(test);

So when that first test trial runs, there are no timeline variables associated with the trial and the prompt function will return undefined. If you remove the line above, then the experiment will just run the test trials inside the test_procedure, so it will have access to your timeline variables.
I hope that helps! Let us know if you have any other questions.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nickriches
Comment options

@nickriches
Comment options

@becky-gilbert
Comment options

Answer selected by becky-gilbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants