Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Testing equality of multiple values


From   Zachary Neal <stata_at_uic@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Testing equality of multiple values
Date   Tue, 18 Sep 2007 13:54:47 -0700 (PDT)

Hi,

I have 26 local macros defined, named a-z.  Is there a
simpler way to test whether `a' is equal to any of the
other macros b-z than: `a'==`b' | `a'==`b' | ... |
`a'==`z'?

Thanks
Zachary

-----------------
Zachary Neal, ABD
Managing Editor, City & Community
University of Illinois at Chicago
zneal2@uic.edu


       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz 

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index