I am trying to provide feedback based on wether participants mouseclicked on a specific image or not.
I have a trial routine and then a feedback routine (in a loop) as shown below:
Each (learning) trial contains 2 images (a learning image and on top of it, a star image). Participants have to use the mouse to click on the star image. Then based on wether they mouseclicked on the star image or not I made a code component (placed on begin routine) attached below:
if mouseclick.clicked_name=="learning_star": msg= "You found the star" elif mouseclick.clicked_name=="learning_images": msg="You didn't find the star" else: msg="You didn't find the star"
The problem I have is that I always get “You didnt find the star”, despite that I click on the star and that thr output file on the clicked_name column has the value of learning_star. Both images are clickable objects. What am I missing here?