**PsychoPy version 1.85.6:
Hi all, I am designing a study within Psychopy that will utilize an amended version of the Posner Cueing Task. The goal is to have two images (one of a white man and one of a black man) displayed simultaneously on either the left or right side of the screen. Each image must randomly chosen and so must the side of the screen on which they appear.
I’m trying to insert code into the builder in order to have the images selected and placed randomly. However, I have almost no coding experience .
Below are screenshots of code I’ve amended from the Psychopy documentation website. (WF is white face, BF is black face)
When attempting to run this, I receive an error message that reads:
if targetPos=[-0.5, 0.0]#on the left
SyntaxError: invalid syntax
This is confusing to me because all I have done is amend the code from the Psychopy documentation. I would greatly appreciate any coding help or other solutions for my image display issue. I can also provide deeper explanation if this isn’t clear.