Skip to content
Discussion options

You must be logged in to vote

Hi @mcd710, for (1), you're getting the error because you can't put a function on the timeline - everything in the timeline array should be an object. To run your countFunction at that point in the timeline, you can either call the function (a) from inside the conditional function in your if_node (after your existing code but before the return statements), or (b) using the call-function plugin. That should answer (2) as well.

For (3), I don't think what you have is quite right so I've suggested something else below. But I haven't tested this so it might not work. So to check, I've added statements to print out the values to the browser's JavaScript console.

var image_data_ff_fs = jsPsych.d…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mcd710
Comment options

@becky-gilbert
Comment options

@mcd710
Comment options

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