Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Q: About PAUSING in V2.2
Posted:
Oct 25, 1996 10:21 PM


Hello Folks:
A simplified version of a mathematica program I am using, is as follow:
testing = "n" ; While[ testing != "y" , Plot[x,{x,0,1}]; Print["Are You happy ?"] ; testing = InputString["To continue, enter: y "] ]
After reaching the sentence: testing = InputString["To continue, enter: y "] the program wait around 30 seconds to receive an answer. If no answer is given between 30 seconds, the While loop is ended and the program continues with the next sentence. How this can be avoided? How to keep Mathematica waiting until an answer is given?
The working enviroment is Mathematica 2.2 under OSF/1 in a DEC(alpha) workstation.
Cordially,
Sergio Rojas
email: sergio@scisun.sci.ccny.cuny.edu



