Hi all, I'm trying to figure out how to break out of a loop once a
variable is changed to a certain value. In each iteration, the value
is modified according to the inputs within the loop. I've tried to use
an "if" command:
if generationnum==2 {
continue, break
}
but it's still not terminating the loop. Does anybody know of a
command to terminate a loop once a specified calculated number is
reached?
Thanks in advance,
Stephen
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/