Weird script behaviour

Eddie Dubourg eddie at ling.ed.ac.uk
Thu Jul 21 11:39:38 UTC 2005


An experiment is being designed here, which has an accuracy test, if the
subject has less than 90% accuracy, the practice is rerun, using the
following inline object script - which you may recognise as being a slightly
modified version of the the script from the User Guide (which didn't work
either).

If Feedback.ACCStats.Mean > .90 
Then
	EndPrac.Text = "Press the space bar if you are ready for real
trials.\n\nIf you have questions, ask now."
Else
	EndPrac.Text = "Your accuracy so far is <90%.\n\nPress the space bar
for more practice."
	Feedback.ACCStats.Reset
	EndPrac.Run
	Goto Label1
End If

Immediately after this scriptlet there is a text object (called EndPrac)
which displays the result, this is set up for infinite duration, Space is
the allowable response.  Now, if the subject passes, everything is fine, and
the actual trials commence, but if the subject gets below 90%, pressing the
space bar does absolutely nothing.  If the duration is not set to infinite,
it times out and goes to label1 quite happily (but if you give a duration
suitably long to press the space bar, again it is not recognised) and
re-runs the trials.  

Anyone have any bright ideas why processing the fail in the script should in
some way stop the following text object recognising the space bar?

All the best
Eddie Dubourg
Computing/Technical Support Officer
Theoretical and Applied Linguistics
University of Edinburgh



More information about the Eprime mailing list