Replies: 1 comment
-
Not sure why the other two do not work, but the way to index could be to do: |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I am trying to do something where each stimulus is paired with a condition (and the condition determines which order the blocks are presented in). My current set up has all of the stimuli are in the timeline variable so when I call it, all of the stimuli are presented for condition 1 and then condition 2, etc. I only want one part of the timevariable to called in each one which I think is why I need to index into the timeline variable, but I cannot figure out how to do that. Many thanks in advance!
How I set up my timeline variable:
After a series of pushing and flattening lists; I combine all of them into timeline Var:
This is how I am currently setting up my data which works, but repeats all of the stimuli (since I am calling in the entire timeline variable) when a condition is met. I am looping across conditions:
These are the other attempts that I thought would fix my problem, but that I cannot get to work:
It seems like a plausible solutin would be to take the first solution I showed and then somehow index by i into timelinevariables? Like timelineVar[i] etc. This doesn't seem to work.
Please let me know if you would need more information for how I set up timelineVar to help! It's a huge chunk of code so I figured this could be enough.
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions