Skip to content
Discussion options

You must be logged in to vote

Solved!
If anyone has any other ideas of how to do this please share!

let timeline = []


function timelinefxn(sequences){
    for (var i = 0; i < sequences.length; i++) 
    {
        var mood_array = sequences[i].condition_mood
        var reward_array = sequences[i].condition_reward
        this_trial_variables = make_trials(mood_array, reward_array)
        var thiswholetrial = {
        timeline: [trial_ratings, trial_circumplex, trust_trial, return_trial],
        timeline_variables: this_trial_variables
        };
        timeline.push(thiswholetrial)
    } 
}

timelinefxn(task_conditions)

jsPsych.run(timeline);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by samanthareisman
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