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

st: options in .ado files


From   "NEYMOTIN, FLORENCE" <[email protected]>
To   [email protected]
Subject   st: options in .ado files
Date   Thu, 21 Jul 2005 11:03:42 -0700

Hi, I have the user entering a string of numbers as an OPTION in a .ado file, but for some reason, the code I wrote for when the user does NOT enter the string is not working. In this case, I have :

syntax varlist, [t(numlist)]

and then...

if "`t'"== "" {
scalar t=1000
}
else {
...
}

for some reason, it doesn't like the way that I defined the if statement.
any suggestions would be appreciated.
thanks,
Florence

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




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