Paul Groot may have adequately answered this (complete with example
program!), but here are my thoughts anyway...
Sigh. First, please please when you post this sort of thing, do
*not* set it in some hard-to-read font, just leave it as plain text
-- I had to copy & paste your code into a text editor, next time
don't expect us to go through that much trouble to help you.
Now first, I generally think it poor practice to assign .Text and
other object properties directly from inline code. Unless you have a
*very* good reason to do so and can explain that decision in depth
(and supply that as extensive comments in your program), you should
always use attribute references for at least three reasons: (1)
Using attribute references often simplifies the code. (2) Attribute
references in the stimulus object act as clues to the reader that
values will be supplied at run time. (3) Attributes get logged to
the .edat file, fully documenting the values used during the run.
So, lines like
EndPrac.Text = "Well done."
should read instead
c.SetAttrib "EndPracText", "Well done."
and then you should use [EndPracText] in your TextDisplay object (or,
consider using a Slide with multiple states).
Second, I generally think it a bad practice to use the .Run method to
run a stimulus from inline code. E.g., I would not use EndProc.Run.
Instead, your CheckACC inline should read merely
If (PracticeACC.Mean >= .80) Then
c.SetAttrib "EndPracText", "Well done."
Else
c.SetAttrib "EndPracText", "Try again."
End If
(actually, it should read simply
c.SetAttrib "EndPracText", Iif( (PracticeACC.Mean >= .80), _
"Well done.", "Try again." )
but that's an advanced coding lesson.)
Then, you should follow EndPrac with another inline that simply goes
If (PracticeACC.Mean >= .80) Then Goto Label2
and then E-Prime will take care of the rest (set up the input mask,
run EndPrac).
Yes, I know it seems to redundantly perform the "If
(PracticeACC.Mean >= .80)" conditional across two inlines, but that's
how we do things in E-Prime.
-----
David McFarlane
E-Prime training
online:
http://psychology.msu.edu/Workshops_Courses/eprime.aspx
Twitter: @EPrimeMaster (
twitter.com/EPrimeMaster)
><<mailto:
jakob4re...@gmail.com>
jakob4re...@gmail.com>