Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: mutually exclusive options within a program
From
Marco Savegnago <[email protected]>
To
[email protected]
Subject
st: mutually exclusive options within a program
Date
Wed, 19 Feb 2014 11:36:45 +0100
Dear statalist,
I'm writing a program which has to accept only one of two possible
options (say either alpha or beta in the code below, each one with a
default value):
syntax [, alpha(integer 5) beta(integer 10)]
I need Stata to return an error code whenever these two options are
invoked together.
How can I achieve this?
Thanks for your consideration,
Marco Savegnago
*
* 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/