Group: Forum Members
Posts: 67,
Visits: 235
|
Hi Millisecond Team,
I tried to use noreplace and got some unexpected behavior I was wondering if you could shed some light on. Basically, it seems that the computation that is supposed to go with each scrfunc condition is not matching up correctly. I have checked the computations themselves and they are correct and where they are supposed to go. But the wrong ones are being called at the wrong times according to the logic of how I thought this was set up. I was able to do a workaround with a text.scrfunc.nextvalue approach, but I'd like to understand why the noreplace approach doesn't work. Thank you. - Andrew
<block experiment> / onblockbegin = [values.scrfunc = noreplace(“IEV”,”DEV”,”CEV”,”CEVR”)] /trials = [1=list.triallist] </block>
<list triallist> / items = (trial.experiment) </list>
<trial experiment> // display an animation, let the subject respond freely / validresponse = (“ “) // space bar = response / on trialend = [ return true;] / branch = [ return dispFeedback ] // now we want to display the outcome of the subject’s choice </trial>
<trial dispFeedback> / ontrialbegin = [ if (values.scrfunc == “IEV”){ // compute IEV condition } else if (values.scrfunc ==“DEV”){ // compute DEV condition } else if (values.scrfunc ==“CEV”){ // compute CEV condition } else if (values.scrfunc == “CEVR”){ // compute feedback for CEVR condition } ] </trial>
<expt main> / blocks = [ 1 = experiment; ] </expt>
|