Group: Forum Members
Posts: 42,
Visits: 220
|
Hi inQuisit experts, I'm a new inQuisit user so I very much appreciate any helpful tips/tutorials/things to check out for finding out the solutions to my problems. My problems are as follows:
I'm programming an experiment which involves the participant deciding between 2 types of tasks on every trial. 1) The first problem I'm having is branching the main selection trial to the trial that they choose. Here's an example of the code that I am trying to use: /branch = [if (trial.maintrial.response == values.responsekeyhard) trial.maintrial_hard] /branch = [if (trial.maintrial.response == values.responsekeyeasy) trial.maintrial_easy] Ideally when the subject presses "responsekeyhard" it bring them to the hard trial, and likewise for the easy response/trial.
2) I was wondering if anyone had an example of code that could count the number of key presses during a trial or could point me to a resource to help. My goal is to count key presses while updating an image (filling a bar) until they reach the goal criterion of key presses.
Thank you very much! Dan
|