How to create a condition for a loop node? #1619
Unanswered
martinakavanova
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Sorry, so I figured out that it's a problem with the loop_function but with the compareKey plugin which is not working for me for some reason. If I use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am having trouble creating a looping timeline. I want a 'chunk' of trials (called OBsAct_1) that I then push to my timeline. I want the chunk to repeat if on the last trial (end_screen) the participant presses key_repeat. But when I press a key the experiment stops and I get an error "jspsych not defined). I don't think it's a problem with 'compareKeys' because it also doesn't work if I use "if(.....response == key_repeat).
I am using the new jspsych 3.0.
^^^ Here the "obsact_1a etc. are instruction type trials and demo are linear chunks of trials.
In a github article from 2015 I had found this code for looping timelines:
(...etc.)
But this also didn't work so I guess that it might be outdated?
Thank you for any help!
Beta Was this translation helpful? Give feedback.
All reactions