Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: mutually exclusive options within a program

From   Marco Savegnago <>
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:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index