Hi,
I previously used a script in inquisit 3 to assign conditions based on subject number. However, using this same script does not work in inquisit 4. Not exactly sure what the new problem is, but here is essentially how I am trying to program this script (see below). For some reason inquisit 4 does not recognize the group assignment variable. I've tried various options including (item.condition1=1) or simply (condition1="blue.bmp") but nothing seems to work at the moment. And I'm also confused as to why this similar script worked in inquisit 3, but no longer works in 4. Any advice here would be really appreciated.
Thanks!
Patrick
<picture condition1>/items = condition1/size = (50%, 50%)</picture>
<item condition1>/1 = "blue.bmp"/2 = "green.bmp"/3 = "red.bmp"</item>
<trial first>/ stimulustimes = [1 = condition1]/ inputdevice = mouse/ response = anyresponse/ correctresponse = (lbuttondown)/ pretrialpause = 1500/ timeout = 22000</trial>
<variables >/ group = (1 of 3) (condition1=1)/ group = (2 of 3) (condition1=2)/ group = (3 of 3) (condition1=3)</variables>
That's not how the <variables> element works. With <variables> you substitute entire *elements*, you don't pick items from a given element.
I.e.
<variables>/ group = (1 of 2) (mytext = a)/ group = (2 of 2) (mytext = b)</variables><text a>/ items = ("A")</text><text b>/ items = ("B")</text><trial mytrial>/ stimulusframes = [1=mytext][...]</trial>
Note that there is no <text mytext> element in the above.