I am dealing with coding that I am pretty new to.
In my experiment participarts are asked to respond with the up and down keyboard arrows to the images they see on the screen. But points to gain or lose vary between 1-5 for each trial. For example, on the 1st trial If the participant responds correctly will get 5 points but if the participant responds incorrectly will lose 3 points. On the other hand, on the 8th trial If the participant responds correctly will get 3 points but if the participant responds incorrectly will lose 1 point. You can see it on my condition file.
I need the total score to be cumulative where the correct response adds the points (between 1-5) and also an incorrect response subtracts the points (between 1-5) from.
Could anyone help me?