I have a script I am working on in which observers decide if a face is rotated clockwise or counterclockwise.
When I use the code (iscorrectresponse) below to determine the correct response on each trial it does not seem to work.
Can you tell me what I am doing wrong here.
<list rotate>
/items=(15,-15)
/poolsize =30
/ selectionrate = always
</list>
<item neutralmale>
/1="WM01/WM01_NO.jpg"
/2="WM02/WM02_NO.jpg"
/3="WM03/WM03_NO.jpg"
/4="WM04/WM04_NO.jpg"
/5="WM05/WM05_NO.jpg"
</item>
<picture maletarget>
/ items = neutralmale
/ selectionrate = always
/size = (150,150)
/rotation = list.rotate.nextvalue
/ position = ((list.poslistx.nextvalue), (list.poslisty.currentvalue))
/ transparentcolor = (white)
</picture>
<trial search>
/ beginresponseframe = 30
/ontrialbegin =[picture.maletarget.resetselection();list.poslistx.reset();list.poslisty.reset()]
/ posttrialpause = 200
/stimulusframes =[
1 =blank,fix;30=blank,maletarget]
/ inputdevice = keyboard
/ validresponse = ("z" "n")
/ iscorrectresponse = [(picture.maletarget.rotation == 15 && trial.search.response == 49)||(picture.maletarget.rotation == -15 && trial.search.response == 44)]
</trial>