On 6 June 2012 16:38, Cathrine Hribar <bhri...@bresnan.net> wrote:

> have run into a problem trying to do a loop.  when I use the sample in the
> manual of the While/Do command, the computer goes into a constant loop, I
> think.

If the WHILE condition never goes false, then the loop (and the
preview) will run for ever.
You can break the preview loop, I think it is ESC or CTRL-C. Though it
might take some time to take effect.

Unfortunately the computer can't know whether your loop is valid. (
http://en.wikipedia.org/wiki/Halting_problem ) so will just blindly
loop for ever.

Have a look at your code and make sure that you are not using the loop
condition variable for something else inside the loop, and that it
reaches the termination condition. GT and LT are much less likely to
cause problems than EQ. Even values which look the same to the
displayed precision will fail the EQ test if they differ in the
umpteenth decimal place.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to