<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="cid:filelist.xml@01C4343A.39F4AB60">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:Zoom>0</w:Zoom>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;
        mso-font-alt:"Century Gothic";
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:647 0 0 0 159 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:553679495 -2147483648 8 0 66047 0;}
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
span.EmailStyle15
        {mso-style-type:personal-reply;
        mso-ansi-font-size:10.0pt;
        mso-ascii-font-family:"Century Gothic";
        mso-hansi-font-family:"Century Gothic";
        mso-bidi-font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
</head>

<body lang=EN-US style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy
face="Century Gothic"><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
font-family:"Century Gothic"'>Hi Nick – The nback program I’m running uses the following
<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><b><font size=2 color=navy
face="Century Gothic"><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
font-family:"Century Gothic";font-weight:bold'>'Make sure that the letter to be
presented is not accidentally a<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal><span class=EmailStyle15><b><font size=2 color=navy
face="Century Gothic"><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
font-family:"Century Gothic";font-weight:bold'>'two-back match.<span
style="mso-spacerun: yes">  </span>If it is, select a different letter to
present.</span></font></b></span><span class=EmailStyle15><font size=2
color=navy face="Century Gothic"><span style='font-size:10.0pt;mso-bidi-font-size:
12.0pt;font-family:"Century Gothic"'><o:p></o:p></span></font></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'>IF
c.GetAttrib("Stimnum") = TwoLettersBack then<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'>if
val(c.GetAttrib("Stimnum"))<4 then<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'><span
style="mso-spacerun: yes"> </span>c.SetAttrib "Stimnum", (val(c.GetAttrib("Stimnum"))+1)<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'><span
style="mso-spacerun: yes"> </span>else c.SetAttrib "Stimnum",
(val(c.GetAttrib("Stimnum"))-1)<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'>end if<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'>else<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'>'Set
TwoLettersBack to what was previously OneLetterBack.<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'>'Set
OneLetterBack to the current letter.<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'>TwoLettersBack
= OneLetterBack<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'>OneLetterBack
= c.GetAttrib("Stimnum")<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'>end if<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></b></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy
face="Century Gothic"><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
font-family:"Century Gothic"'>It looks pretty similar to what you’re using. <o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy
face="Century Gothic"><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
font-family:"Century Gothic"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy
face="Century Gothic"><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
font-family:"Century Gothic"'>The inline in my match procedure looks like this:<o:p></o:p></span></font></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'>c.SetAttrib
"Stimnum", TwoLettersBack<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'>'Set
TwoLettersBack to what was previously OneLetterBack.<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'>'Set
OneLetterBack to the current letter.<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'>TwoLettersBack
= OneLetterBack<o:p></o:p></span></font></b></span></p>

<p class=MsoNormal style='margin-left:.5in'><span class=EmailStyle15><b><font
size=2 color=navy face="Century Gothic"><span style='font-size:10.0pt;
mso-bidi-font-size:12.0pt;font-family:"Century Gothic";font-weight:bold'>OneLetterBack
= c.GetAttrib("Stimnum")</span></font></b></span><span
class=EmailStyle15><font size=2 color=navy face="Century Gothic"><span
style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:"Century Gothic"'><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy
face="Century Gothic"><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
font-family:"Century Gothic"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy
face="Century Gothic"><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
font-family:"Century Gothic"'>Have you checked your match procedure to be sure that
those trials have the same attributes as the no match trials?<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy
face="Century Gothic"><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
font-family:"Century Gothic"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy
face="Century Gothic"><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
font-family:"Century Gothic"'>Karen Nolan<o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=EmailStyle15><font size=2 color=navy
face="Century Gothic"><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
font-family:"Century Gothic"'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>

<p class=MsoNormal style='margin-left:.5in'><font size=2 color=black
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:black'>-----Original
Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Nick Coupland
[mailto:nc2@ualberta.ca]<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, May 07, 2004 1:38 PM<br>
<b><span style='font-weight:bold'>To:</span></b> eprime@mail.talkbank.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> n-back</span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face=Arial><span style='font-size:12.0pt;font-family:Arial;color:black'>Hi, I'm
trying to get up a two back task with a randomized letter list, which takes
from one of two trial lists :-</span></font><font color=black face=Arial><span
style='font-family:Arial;color:black;mso-color-alt:windowtext'><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=3 color=black
face=Arial><span style='font-size:12.0pt;font-family:Arial;color:black'>no match<x-tab>        </x-tab>TwoNoMTrialList
</span></font><font color=black face=Arial><span style='font-family:Arial;
color:black;mso-color-alt:windowtext'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:
12.0pt;margin-left:1.0in'><font size=3 color=black face=Arial><span
style='font-size:12.0pt;font-family:Arial;color:black'>match<x-tab>   </x-tab><x-tab>        </x-tab>TwoMTrialList<br>
<br style='mso-special-character:line-break'>
<![if !supportLineBreakNewLine]><br style='mso-special-character:line-break'>
<![endif]></span></font><font color=black face=Arial><span style='font-family:
Arial;color:black;mso-color-alt:windowtext'><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.5in'><font size=3 color=black
face=Arial><span style='font-size:12.0pt;font-family:Arial;color:black'>The no
match procedure has an inline script to modify the letter if it is an
accidental match to the two back letter:<br>
<br>
<br>
<b><span style='font-weight:bold'>'Add contents of TwoList to the
"context" in which we are working.<br>
c.Add TwoList<br>
c.Update<br>
<br>
<br>
'Declare a variable, i, for use as a counter in a while-loop<br>
Dim i As Integer<br>
i = 0<br>
<br>
<br>
'Make sure that the letter to be presented is not accidentally a<br>
'two-back match.  If it is, select a different letter to present.<br>
While c.GetAttrib("Letters") = TwoLettersBack<br>
<x-tab>        </x-tab>c.SetAttrib
"Letters", TwoNoMTrialList.GetAttrib(i, "Letters")<br>
<x-tab>        </x-tab>i = i + 1<br>
Wend<br>
<br>
<br>
'Set TwoLettersBack to what was previously OneLetterBack.<br>
'Set OneLetterBack to the current letter.<br>
TwoLettersBack = OneLetterBack<br>
OneLetterBack = TwoNoMTrialList.GetCurrentAttrib("Letters")<br>
<br>
<br>
</span></b>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?</span></font><font
color=black><span style='color:black;mso-color-alt:windowtext'><o:p></o:p></span></font></p>

</div>

</body>

</html>