Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: loops

From   "Hans J. Baumgartner" <>
Subject   st: loops
Date   Wed, 20 Apr 2005 11:35:33 +0200

Dear statalist,

I am working on a huge project using loops over loops over loops. 

Now it happens that I would like to exclude some elements of the loops, 

foreach x in ? {
                if ?`x?? == ? {
                        jump do the end of the loop, i.e. ignore all 
commands till then.
                some fancy commands

Thanks for all suggestions in advance

Hans J. Baumgartner
Dept. Public Economics
DIW Berlin
German Institut for Economic Research
phone: +49/30/89789-307
fax :      +49/30/89789-114


*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index