How can I test my string as if it is a quote (“) or not.
The default escape character is ‘^’, isn’t it?
So I tried the following but with no success yet:
if "!first_char!" == "^"" (...)
I tried double quote, too:
if "!first_char!" == """" (...)
Thanks!
The problem is not with the right part of the comparison, but with the left part. As first_char contains a quote, then the left operand of the comparison does not make sense. So you have to escape with
^the variable that holds the".try something like this…