function IncorrectTrialProcs(timeline, timelineVariables) {
        this.timeline = timeline,
            this.timeline_variables = timelineVariables,
            this.conditional_function = function () { //function only happens is response is not correct!
                const data = jsPsych.data.get().last(1).values()[0];
                return data.correct !== true;
            }
    }
/*function for incorrect pattern trial procedures*/
function for incorrect pattern trial procedures
function for incorrect pattern trial procedures
function IncorrectTrialProcs(timeline, timelineVariables) {
        this.timeline = timeline,
            this.timeline_variables = timelineVariables,
            this.conditional_function = function () { 
                const data = jsPsych.data.get().last(1).values()[0];
                return data.correct !== true;
            }
    }
function IncorrectTrialProcs ( timeline , timelineVariables ) { this . timeline = timeline , this . timeline_variables = timelineVariables , this . conditional_function = function ( ) { const data = jsPsych . data . get ( ) . last ( 1 ) . values ( ) [ 0 ] ; return data . correct !== true ; } }
function for incorrect pattern trial procedures
function for incorrect pattern trial procedures
//function only happens is response is not correct!