I need to build different OBX segments based on whether a value is present in the OBX5 input. The only way I can figure out how to do this is multiple iterations on OBX5. So…on the first loop I copy input to a variable through a simple tcl statement that says if the string contains the word “addendum” set xlateOutVals to “Y”. The problem is that I can’t maintain the value of the variable. For example if I find addendum on the first iteration and set the variable to “Y” then on the second iteration the condition is NOT met the variable is overwritten to the input value. Is there a better way to do this? It sure sounds like I’m making this more complicated thatn I need to. Any assistance appreciated!!