changing CorrectAnswer
dkmcf
mcfarla9 at msu.edu
Thu Mar 18 13:09:14 UTC 2010
Eli,
If you want to manipulate the correct response by changing .CRESP in
code, then you have to do that *before* your input mask runs, not
after. Once an input mask gets a response it scores that response
using the latest value of .CRESP, so changing .CRESP after the fact
does no good.
So, either change .CRESP before your input mask runs, or, as liw
suggested, use code after the response to score the response directly,
i.e., make your change directly to .ACC (based directly on, e.g.,
handedness and .RESP) instead of to .CRESP.
-- David McFarlane, Professional Faultfinder
On Mar 18, 7:38 am, Eli Koren <ekor... at gmail.com> wrote:
> Hi There!
>
> I want to change the CorrectAnswer if handedness is left
> so i wrote this script:
>
> if c.GetAttrib("handedness") <>"left" then
> if stim1.Cresp ="{/}" then
> stim1.Cresp ="x"
> elseif stim1.Cresp ="{.}" then
> stim1.Cresp ="z"
> end if
> end if
>
> It doesn't change the CorrectAnswer so what's wrong with this
> script?
>
> Thanks
> ELi Koren
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.
More information about the Eprime
mailing list