We are trying to design an experiment using a two box choice paradigm. In our experiment, the participant is asked if they want to open a box or not. If they select yes, they are shown an open box. If they select no, they are shown a closed box. So essentially, a left key is used for not opening the box and right key to open the second box. We are having problems with the code, our key responses don’t seem to be linked to our loops. We are using an if statement for conditional branching, but regardless of the key we press the experiment skips to the closed box and will not show the open box.
Thanks in advance.