<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">Hello,<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman""><o:p> </o:p></span><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">I have learned so much about E-Prime through
this group and through butting my head against E-Prime's metaphorical wall
(i.e. scripting).  It is now time for me to post a question.</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><o:p> </o:p></span><b><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">My experiment:</span></b></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><o:p> </o:p></span><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">This memory experiment asks participants to
study a list of pictures.  At test, they are presented with both the
pictures they just studied and new pictures.  Their job is to discriminate
between studied and non-studied pictures (e.g. "Was this old or new?").
 In this experiment, there are 5 such study-test blocks.  My
manipulation is to use five different payoff matrices which correspond to the
five study-test blocks.  Each study-test block (and thus, each payoff
matrix) will be presented in random order to each new participant.</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><o:p> </o:p></span><b><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">My question:</span></b></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><o:p> </o:p></span><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">I am trying to create a feedback counter to
present to participants after each trial.  I can do it, but my script
requires many nested "If...Then" statements and "Select
Case" statements.  The reason for this is because of the following:</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><o:p> </o:p></span><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">1) I have two experiment startup conditions.
 I have an "Old New" Condition and a "PDP" condition
(not important what these actually mean).  As a result, I also have two
different SlideObjects (TestSlideOLDNEW and TestSlide) that correspond to each
condition.  The TestSlide objects collect trial responses.</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">2) I have 5 different "Payoff Matrix"
conditions (I call them A, B, C, D, and E).<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">3) I need to assign different 'points' to each
correct and incorrect response.<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">4) For each correct and incorrect response, I
need to assign different point values based on the type of picture presented
(e.g. old/studied or new/non-studied).  This corresponds to Hits, Misses,
False Alarms, and Correct Rejections.<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><o:p> </o:p></span><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">I will try to explain what I have in the
following script:</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><o:p> </o:p></span><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">**********************************************************************************************************************</span></p><p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span class="Apple-style-span" style="font-family: Arial, sans-serif; "></span><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">***********************************************************************************************************************</span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">'This If...Then statement refers to (1) above</span><br></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">If c.getattrib ("TestType") =
"OldNew" then<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">Select Case MasterList.getattrib
("Payoff") ' This refers to the five different Payoff Matrices</span><br></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:1">            </span>Case
"A" 'First payoff matrix<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:2">                        </span>If
MasterList.getattrib ("StatusOldNew") = "Old" then<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:3">                                    </span>If
TestSlideOLDNEW.ACC = 1 then 'Hit Rate<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:4">                                                </span>AccuracyDisplay
= AccuracyDisplay+1 'counter<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:4">                                                </span>c.setattrib
"Accuracy", AccuracyDisplay 'Sets Accuracy attribute so that I can
display up-to-date point system per trial<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:3">                                    </span>Elseif
TestSlideOLDNEW.ACC = 0 then 'Miss<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:4">                                                </span>Accuracy
Display = AccuracyDisplay-1<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:4">                                                </span>c.setattrib
"Accuracy", AccuracyDisplay<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:3">                                    </span>Else
MsgBox "Conservative A condition payoff matrix error Status Old"<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:3">                                    </span>End
if<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:2">                        </span>Elseif
MasterList.getattrib("StatusOldNew") = "New" then<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:3">                                    </span>If
TestSlideOLDNEW.ACC = 1 then 'Correct Rejection<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:4">                                                </span>AccuracyDisplay
= AccuracyDisplay+5<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:4">                                                </span>c.setattrib
"Accuracy", AccuracyDisplay<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:3">                                    </span>Elseif
TestSlideOLDNEW.ACC = 0 then ' False Alarm<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:4">                                                </span>AccuracyDisplay
= AccuracyDisplay-5<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:4">                                                </span>c.setattrib
"Accuracy", AccuracyDisplay<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:3">                                    </span>Else
MsgBox "Conservative A condition payoff matrix error Status New"<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:3">                                    </span>End
if<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:2">                        </span>Else
MsgBox "StatusOLDNEW payoff matrix error"<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><span style="mso-tab-count:1">            </span>Case
"B"<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">.<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">.<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">.<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">Case "E"<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black"><o:p> </o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">Elseif c.getattrib("TestType") =
"PDP" then<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">    Select Case.........<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">.<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">.<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">.<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">***********************************************************************************************************************</span><br></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span style="font-family:"Arial","sans-serif";mso-fareast-font-family:
"Times New Roman";color:black">***********************************************************************************************************************<o:p></o:p></span></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">You can see that much of my script seems
redundant, but I cannot figure out how to condense the script any further.
 I am familiar with For...Next loops, SubRoutines, Arrays, If...Then, IIf,
and Select...Case functions as I've read the E-Basic help on these functions
and used them in the past.  However, my personal experience with
Subroutines and Arrays is limited, but I understand them enough to have been
able to use them in the past effectively.  The solutions I've thought of
merely require rearranging everything in IIF, If...Then, or Select...case
functions, but this seems like a rather unnecessary rearrangement.  I've
also thought of declaring an array so that I can just add values to the counter
within a For...Next loop, but this also seems unnecessary because I could just
as easily input the actual integer values. </span><br></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">Therefore, my question is, how can I condense
this script further?  I will continue to try to innovate, but I would also
like to hear any comments/suggestions that any of you might have.  I plan
to post my (hopefully, elegant) solution once I reach it.</span><br></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">If anything seems unclear, please let me know.</span><br></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">Thank you!</span><br></p>

<p class="MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:
normal"><span class="Apple-style-span" style="font-family: Arial, sans-serif; ">Caleb J. Picker</span><br></p>

<p class="MsoNormal"><o:p> </o:p></p>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "E-Prime" group.<br />
To post to this group, send email to e-prime@googlegroups.com.<br />
To unsubscribe from this group, send email to e-prime+unsubscribe@googlegroups.com.<br />

For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.<br />