Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: unconventional use of if condition


From   tashi lama <ltashi32@hotmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: unconventional use of if condition
Date   Fri, 29 Jun 2012 15:09:18 +0000

Hello, 

    In the fetchyahooquotes.ado written by Mehmet F. Diche, Ph.D. and John Levendis, Ph.D., I encountered following use of if

     if ("`start'"!="") drop if date<(date("`start'", "DMY"))
     if ("`end'"!="") drop if date>(date("`end'", "DMY"))

 

I was under the impression and the documentation rightly says to precede 'if' with braces ("{") followed by command in the next line. Sth like this 

 

if x==4 {

 .....

}

 

Could someone explain me this?

 

Thanx...

  		 	   		  
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index