Skip to content
Discussion options

You must be logged in to vote

Hi @ler93, you can have a look at the documentation for conditional timelines here.

In your case, the final_questions2 trial should go inside of a conditional node, since that trial should only run under certain conditions. In the conditional_function for your conditional node, you'll want to check what choice was made on the final_questions1 trial. The conditional function should return true if "yes" was selected, and should return false if "no" was selected.

There are a few different ways that you can access the data from the final_questions1 trial. One option is to get all of the jsPsych data with jsPsych.data.get, and then filter the resulting data collection with the filter function.…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ler93
Comment options

@becky-gilbert
Comment options

@ler93
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