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

st: ... and you can quote me


From   NBER Test <[email protected]>
To   [email protected]
Subject   st: ... and you can quote me
Date   Wed, 24 Sep 2003 11:02:47 -0700 (PDT)

I'd like to save typing and clean up a program by
using
a local variable with conditions that evaluate strings
like below:

local 1 "whatever"
local if "``1' == "first thing" | `1' == "second
thing"'"
if `if' { ...

only I can't get the quotes or compound quotes in my
`if' declaration to resolve quite right.

Thanks for your help!

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
*
*   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