I have a global tcl script that checks a subfield and if the content of that message is in the list of arguments called OLDVALS, it will translate to the corresponding list of arguments called NEWVALS. The argument looks like this:
{SEGNAME GT1} {FIELDNUM 3} {SUBFIELDNUM 0} {OLDVALS {OLD1 OLD2 OLD3}} {NEWVALS {NEW1 NEW2 NEW3}}
This works exactly how I need it. The problem I have run into, is that I am trying to apply this script to an old value of “”. I need to turn it to ND. When I try this, I get a tcl error saying there is an unmatched open quote in list:
{SEGNAME GT1} {FIELDNUM 3} {SUBFIELDNUM 0} {OLDVALS {“”}} {NEWVALS {ND}}
When I try to escape it, it will simply not perform the translation:
{SEGNAME GT1} {FIELDNUM 3} {SUBFIELDNUM 0} {OLDVALS {“”}} {NEWVALS {ND}}
I’m relatively green, so hopefully there is something obvious I am omitting. I can write a script to do this, but I make every attempt to not write a new tcl script if I do not have to do it.