-
Hey everybody, I have been working on something for weeks now and finally need to accept that I don't seem to be able to solve this issue myself. I'm using jsPsych 7 and what I want to do is the following: I have three trials: action, sketchpad, and rating. For a given stimulus A, I want participants to be able to input an action and mark an area on the stimulus. They are able to decide how many times to repeat this step. So they are supposed to repeat action, sketchpad and decision as many times as they want before continuing to stimulus B.
The issue is the following: In addition, I would like participants to be able to decide if they want to repeat the entire timeline or only add more markings and ratings to an action (thereby including two loops - one over sketchpadTrial and rating and a bigger one that starts at action). Does anyone have an idea on how to solve this? Or if it's possible at all? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's been a while since I fixed it but I figured perhaps someone else might profit from the solution one day! Here's what I did: // Manual loop pushing your loop_node, but the timeline_variable for each loop_node repetition is just a one-element array (trial_info split up into its elements)
Obviously here now people get the choice of R and A in the decision trial. If the response in decision === a, the loop continues over the timeline, if not, it continues over the next stimulus in stimvars. |
Beta Was this translation helpful? Give feedback.
It's been a while since I fixed it but I figured perhaps someone else might profit from the solution one day! Here's what I did:
// Manual loop pushing your loop_node, but the timeline_variable for each loop_node repetition is just a one-element array (trial_info split up into its elements)