Stata15/Linux64
I was trying to find a solution to this problem in the forums, but I'm still running into this issue when using various strings:
works
works, but di "`a1'" fails.
doesn't work
doesn't work
works, but di "`a1'" fails, and most importantly, I couldn't "word 2 of `a1'" then use it as a condition in a if statement.
Please help me understand how the parser works, and what would be the best approach to format this do file properly, my intend is to use "///" which I think is easier to read, also that I would prefer not to use such format, which is more difficult to read and (I think) cumbersome.
works
I was trying to find a solution to this problem in the forums, but I'm still running into this issue when using various strings:
Code:
local a1 "v[\`i']<\`l' (v[\`i']-1)<\`l' v[\`i']<10"
Code:
local a1 "v[\`i']<\`l'" + "(v[\`i']-1)<\`l'" + "v[\`i']<10"
Code:
local a1 "v[\`i']<\`l' /// (v[\`i']-1)<\`l' v[\`i']<10"
Code:
local a1 ""v[\`i']<\`l'" /// "(v[\`i']-1)<\`l'" "v[\`i']<10""
Code:
local a1 "v[\`i']<\`l'" + /// "(v[\`i']-1)<\`l'" + /// "v[\`i']<10"
Please help me understand how the parser works, and what would be the best approach to format this do file properly, my intend is to use "///" which I think is easier to read, also that I would prefer not to use such format, which is more difficult to read and (I think) cumbersome.
Code:
local a1 "v[\`i']<\`l'" local a1"`a1' (v[\`i']-1)<\`l'" local a1"`a1' v[\`i']<10"
Comment