changing CorrectAnswer

Michiel Spape Michiel.Spape at nottingham.ac.uk
Thu Mar 18 13:56:27 UTC 2010


Hi,

1.       I assume your CorrectAnswer is an attribute, yes? Why don't you just change that then? That way, logging will also be more consistent...

2.       No need for { }: (unless you use {SPACE} or something)

 

If c.GetAttrib ("Handedness") <> "left" then

                If stim1.CResp = "/" then stim1.Cresp = "x"  'plethora of other ways of writing this, I just like this one best

                If stim1.Cresp = "." Then stim1.Cresp = "."

End if

 

Or even, assuming it's a 2 response force choice task:

If c.GetAttrib ("Handedness") <> "left" then

                If c.GetAttrib("CorrectAnswer") = "/" then c.SetAttrib "CorrectAnswer", "x"  else c.SetAttrib "CorrectAnswer, "."                                 

End if

 

Cheers,

Mich

 

Michiel Spapé

Research Fellow

Perception & Action group

University of Nottingham

School of Psychology

 

From: e-prime at googlegroups.com [mailto:e-prime at googlegroups.com] On Behalf Of Eli Koren
Sent: 18 March 2010 11:38
To: e-prime at googlegroups.com
Subject: changing CorrectAnswer

 

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.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20100318/6dc30351/attachment.htm>


More information about the Eprime mailing list