Hi Carl,
Not exactly sure what you’re building, but you need to input your variable into the tcl statement as well and then check whether the variable is already set to Y. If so, just set variable to Y. If not, check whether OBX5 contains the word “addendum” and set the variable accordingly.
Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands