Millisecond Forums

assign result to an expression

https://forums.millisecond.com/Topic11024.aspx

By beccca - 7/29/2013

Dear all


 


It's me again ;). I have another question:


 


Inquisit shows me
either picture 1 or picture 2 randomly:


 


<trial showPic>


/ stimulusframes =
[1=noreplace(pic)]


/ validresponse =
(anyresponse)


/ inputdevice =
keyboard


</trial>


 


 


pic contains:


 


<item pic>


/1 = “pic1.jpg”


/2 = “pic2.jpg”


</item>


 


<picture pic>


/items = pic


</picture>


 


I would like to save
the result (meaning what picture has been shown) to a variable.


 


I have created an
expression


<expressions>


/picResult = 0


<expressions>


 



But how can I assign
the result to the generated expression (picResult)?


 


Thanks a lot


 


Becca.

By Dave - 7/30/2013

If you want a *variable*, you should not use <expressions> but <values>. You set that value to whatever you wish via conditional logic in event attributes (/ontrialbegin, /ontrialend, etc.).