counting backward with conditionals #1366
-
Hello! I have a question concerning the In the main block the timeline is If At each fixation in the I also tried to use Do you have an idea on how I can fix this? Thanks a lot in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @LeslieHeld, I recommend using the var choice = {
data: {phase: 'choice'}
}
var loop_node = {
loop_function: function(){
jsPsych.data.get().filter({phase: 'choice'}).values()[0].choice
}
} I'm not quite sure which |
Beta Was this translation helpful? Give feedback.
Hi @LeslieHeld,
I recommend using the
data
parameter to tag the choice trial with some kind of unique identifier and then use the.filter()
method when you want to grab the data.I'm not quite sure which
on_finish
you are referring to in the second part of your question.