I have an experiment where I am conducting a memory test. In the recognition phase, I show participants images and ask them to rate the images based on a scale of 1-6 based on how old or new they think the image is. 1-3 on the scale = old, and 4-6 = old. I need participants to get feedback (correct! or incorrect!) based on the number they press. Eg. if they press either 1,2 or 3 and the image is old, i want the feedback to be correct. If they press 4 and the image is new, then the feedback should read incorrect and vice versa if they image is new.
Sorry I should have said! I tend to use mySlider, myText, myMouse, etc. as placeholders for component names. You can call it whatever you like, so long as the code and the name match
The Text component you’re using to display the feedback, next to the box for its text there should be a drop down menu saying “constant”, “update each frame” or “update each repeat” - which one of these do you have selected?
Try adding feedbackText = "" to the Begin Experiment tab of your Code component, that way the variable will exist before the routine starts and the text is set