Skip to content
Discussion options

You must be logged in to vote

Using jsPsych.addNodeToEndOfTimeline seems to work (this time not suggested by chatGPT 😆 )!

on_finish: function(data) {
        ExpPhase = data.response.Exp_Phase; // Save the user response to the variable
        ExpDay = data.response.Exp_Day; // Save the user response to the variable

        if ( ExpPhase == 'Study' ) { 
            var study_timeline = {
                timeline: [CallSetup(), endtask, VideoWatching(), endtask, PaintingPreference(), endtask, npat, endtask, SceneCongruency(), endtask, Taboo(), endtask, AutobiographicalInterview()]
            }
            jsPsych.addNodeToEndOfTimeline(study_timeline)
        } else if ( ExpPhase == 'Test' ){
            // Concatena…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by mrinmayik
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