-
Hi there, I updated to the latest version of jsPsych yesterday to fix another question I'd raised, but I realise the conditional function now only works only once at the beginning of a timeline start, even if there are many timeline variables. For the past versions, it used to work at every run of the timeline, not only the first run. I switched the versions back to jsPsych-6, and things worked fine without me tweaking anything. It does seem like a bug, but perhaps it was intentional on your part? I couldn't find any documentation that highlighted this, though! Hope you can fix it soon? Best |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @sankalp35, This was an intentional change. The intention is for the |
Beta Was this translation helpful? Give feedback.
-
How about adding a var end_timeline_check = {
type: 'call-function',
func: function(){
if(time_elapsed > time_allowed){
jsPsych.endCurrentTimeline();
}
}
} |
Beta Was this translation helpful? Give feedback.
How about adding a
call-function
plugin to the end of the timeline: