n-back
Nick Coupland
nc2 at ualberta.ca
Fri May 7 17:38:05 UTC 2004
Hi, I'm trying to get up a two back task with a randomized letter list,
which takes from one of two trial lists :-
no match TwoNoMTrialList
match TwoMTrialList
The no match procedure has an inline script to modify the letter if it is
an accidental match to the two back letter:
'Add contents of TwoList to the "context" in which we are working.
c.Add TwoList
c.Update
'Declare a variable, i, for use as a counter in a while-loop
Dim i As Integer
i = 0
'Make sure that the letter to be presented is not accidentally a
'two-back match. If it is, select a different letter to present.
While c.GetAttrib("Letters") = TwoLettersBack
c.SetAttrib "Letters", TwoNoMTrialList.GetAttrib(i, "Letters")
i = i + 1
Wend
'Set TwoLettersBack to what was previously OneLetterBack.
'Set OneLetterBack to the current letter.
TwoLettersBack = OneLetterBack
OneLetterBack = TwoNoMTrialList.GetCurrentAttrib("Letters")
However, this only works when the two back letter is from a no match trial.
If it is from a match trial, it crashes. How do I modify the script so it
can recognize accidental matches from both match and no match trials?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/eprime/attachments/20040507/2b9a891c/attachment.htm>
More information about the Eprime
mailing list