Nested conditional timelines. #3295
Unanswered
CayoPigeon
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @CayoPigeon! Thanks for including your code. I hope you don't mind but I edited your post to format your code block, as it was hard to read (see this discussion post: #1113). I'm having trouble understanding what you're trying to do. I think it would help if you explained this as a simplified example with a few steps describing how the procedure should work, something like this:
Is that right? |
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
-
Hi everyone! Thank you in advance for reading this out. I'm doing an experiment where i measure the affect produced by the performance on a Q&A General Knowledge task. The idea is that the participant should be able to select the difficulty level of the questions. They get to choose between "easier", "same" or "harder". Which means, that the array where i have stored all the trials of a certain difficulty should display the "next set of questions" if the previous block was of the same difficulty level. Each block consists of 5 questions. I have 10 stored on the array for each difficulty. What would you do to change the index of the array depending on whether the previous block was of the same difficulty. What I thought of was to nest different timelines. I'll describe one difficulty but i have done the same with all the others. I created a variable that contains the first 5 elements of the array containing all of the easiest questions and it has a conditional_function that returns true / false depending on a counter i declared called recorrido_mf. Recorrido_mf has a ++ at the end of each element of the array containing all of the questions trials. The problem I've encountered is that whenever i start running the trial, the first time the variable containing the two variables of the two halves of the array of a certain difficulty is pushed, both halves are displayed instead of one. As if there was no conditional function on the two variables contained in the third variable. To be clear, variable A has a conditional function to be displayed depending on the level of difficulty which works fine. Variable A contains in its timeline B and C. Variables B and C contain the first and second half of the array which has all the trials of questions respectively. The problem is I think with the condition in variables B and C. However at first, when running the experiment,the first time it gets to variable A, it displays both B and C as if the condition for both were met (which are meant to be exclusive).
I'll share the code i have so far. Sorry for being so wordy. If you need me to describe what I'm doing, please tell me. btw im using cognition.run and jspsych 7.3
Beta Was this translation helpful? Give feedback.
All reactions