Skip to content

add properties to all events of a trial #1213

Answered by AlexStuffs
AlexStuffs asked this question in Q&A
Discussion options

You must be logged in to vote

I replaced this:

      data: function(){
        var last_trial_condition = jsPsych.data.get().last(1).select('condition').values;
        return{condition: last_trial_condition};

in the mask part of the code by your code and it perfectly works now!
(I really don't get the difference, need some javascript lessons I guess!)

Thanks!

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

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

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