Yet another iterate question

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Yet another iterate question

  • Creator
    Topic
  • #48767
    Carl Duff
    Participant

      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!!

    Viewing 0 reply threads
    • Author
      Replies
      • #59610
        Robert Kersemakers
        Participant

          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

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.