Bookmark and Share

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: testing equivalence of long variable lists


From   Jeremy Freese <[email protected]>
To   [email protected]
Subject   st: testing equivalence of long variable lists
Date   Thu, 25 Mar 2010 15:06:16 -0500

I have some old code that uses this statement:

if "`tmp1'"=="`tmp2'" {

where tmp1 and tmp2 contain variable lists.  My understanding is that
if the variable list is longer than 244 characters, this will evaluate
to true if there is some difference between tmp1 and tmp2 after the
244th character.  Is this correct?  How does one test the equality of
long macros?

--Jeremy
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index