This sample demonstrates how to implement early termination of a running experiment in E-Prime, while still retaining all data logging. The sample uses the GetUserBreakState function.
This function is documented in the E-Basic Online Help, as well as in Section 2.8.2 of the E-Prime Reference Guide.
This sample demonstrates how to implement a 'safe exit' of a running experimentin E-Prime using the GetUserBreakState function..
The critical script is in the 'BreakCheck' Inline. To terminate the experiment early (and safely, with all logging intact) press the key sequence of during any trial. The experiment
will recognize the sequence at THE END of the current trial and then terminate the experiment.
NOTE: Once the user holds down , GetUserBreakState will continue to return a non-zero value even after the user has released the keys until an explicit call to
SetUserBreakState is called to reset the value back to zero.