Skip to content
Discussion options

You must be logged in to vote

Hi @freewillbelief,

Right now the video_trials will run before the if_node, and the video_trials includes the two questions about which dot is the wolf and the sheep. When the if_node trial runs, the data value is the data from the last trial asking which dot is the sheep.

I think putting the if_node as part of the video_trials timeline will help solve the problem.

var attention = {
  type: jsPsychHtmlButtonResponse,
  stimulus: "<p>Which dot is <strong>green</strong>?</p>",
  choices: ["1", "2", "3", "4", "5", "6"],
  prompt: "<p>Please click the above button to answer the question.",
};

var if_node = {
  timeline: [attention],
  conditional_function: function () {
    var data = jsPsych.

Replies: 1 comment 1 reply

Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant