-
Hello all, I'm coding an experiment using jsPsych 7.1.2, where I want trials to be added based on a user's response. For instance, if a user selects Study Phase, then I want study trials to be displayed. If they select Test Phase, then test trials should be displayed. Here is the relevant code (in the interest of full disclosure, this solution is adapted from a response from chatGPT!!):
This doesn't seem to work. It runs the get_subj_id, and get_exp_info trials, and then the experiment terminates, without any error. Any suggestions on how to fix this? Thank you, PS: Variables, functions used here (e.g., CallSetup(), endtask, VideoWatching() etc.) have been defined before the code block pasted here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Using
Not sure if this is the best solution, but I thought I'd post it to get feedback! |
Beta Was this translation helpful? Give feedback.
Using
jsPsych.addNodeToEndOfTimeline
seems to work (this time not suggested by chatGPT 😆 )!