Monday, December 21, 2020

Use of compounded double quotes in a string containing several quotation marks and single quotes

I think I have a problem understanding compounded double-quotes. I am writing an incorrect code on purpose to show what I need:

Code:
local is_domestic {nationality_`n'!="US" & nationality_`n'!="Puerto Rico" & nationality_`n'!=""}
That is, I need to pass to a local macro called `is_domestic' the string enclosed in the parentheses {..} exactly as it is, including the _`n' and the quotation marks. I tried following the user manual and several existing posts, but I wasn't able to achieve my goal. Is anyone able to help?

No comments:

Post a Comment