how to make 'answer' parameter dynamic in same-different-image? #1585
Unanswered
benwandrew
asked this question in
Q&A
Replies: 1 comment
-
Hi @benwandrew , In general to make parameters dynamic you need to use functions. Here's the relevant docs page. In this case it sounds like you want to have one dynamic parameter that depends on two other dynamic parameters. You can do this via the |
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.
-
hi all,
in a same-different-image trial, i'd like to make the value that the answer parameter takes dynamic. specifically, i'd like it to depend on whether the first_stim_duration (fixed at 500ms) is longer than the the second_stim_duration (randomly sampled from an array of 100ms up to 900ms by increments of 100ms).
is it some simple if/else logic? if so, where can i find the correct syntax for writing such a statement?
if (first_stim_duration < second_stim_duration)... doesn't seem to be working.
i'm new to jspsych all around, so i'd really appreciate any pointers!
Beta Was this translation helpful? Give feedback.
All reactions