assign result to an expression


assign result to an expression

Author
Message
beccca
beccca
Esteemed Member
Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)

Group: Forum Members
Posts: 13, Visits: 11

Dear all


 


It's me again Wink. 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.


Dave
Dave
Supreme Being
Supreme Being (702K reputation)Supreme Being (702K reputation)Supreme Being (702K reputation)Supreme Being (702K reputation)Supreme Being (702K reputation)Supreme Being (702K reputation)Supreme Being (702K reputation)Supreme Being (702K reputation)Supreme Being (702K reputation)

Group: Administrators
Posts: 9.8K, Visits: 47K

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.).


GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search