IF problem within Iterate

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf IF problem within Iterate

  • Creator
    Topic
  • #53275
    Gordon Koch
    Participant

      Hello All,

         I need to iterrogate down to the field level amongst repeating OBX.5 fields (within a repeating group), and then output the whole group if the condition is met. My IF statement successfully finds the match, but my output only includes the matched field, and not the rest of the OBX.5 fields that I want included. Here is the basis in my IF statement:

      1(0).2(0).1(%g1).OBX(0).#5(%f1)

      Any input would be appreciated to fix the Xlate.

      Thanks.

    Viewing 2 reply threads
    • Author
      Replies
      • #77128
        Daniel Lee
        Participant

          What’s inside your if?  When you’re including an element of an itterate only if it matches a certain criteria you also have to keep a variable that keeps track of how many matches you’ve had so you know which itteration of the output variant you’re on.

        • #77129
          Gordon Koch
          Participant

            Hello Daniel,

                My IF statement has a contains (ct) doing a string match. I understand why it is returning only the subfield with the match, but I want to apply different code to the whole OBX.5 when this element is present. This is what I am trying to figure out.

            Thank you.

          • #77130
            Daniel Lee
            Participant

              Can you include a screenshot so I can see what you’re Xlate is doing?

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