Skip to content
Discussion options

You must be logged in to vote

It turns out @becky-gilbert answered a similar question in the old jsPsych google group forum.

The context is a little different, but the same strategy should apply. Here's the key bit from her answer:

I think you could do something like what Mara suggested, except that you could use a loop node so that your trial procedure keeps repeating until you have a valid response for all stimuli. To do this, I would create a timeline for just one trial, and an array to hold all of your stimuli. Then you could present the first item in the array, and in the trial's on_finish function, remove that stimulus from the array (so that the next stimulus in the array is now the first item), and if there w…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@prashantig25
Comment options

Comment options

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

@becky-gilbert
Comment options

@prashantig25
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
3 participants