Iterate in Xlate – How to end on condition

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Iterate in Xlate – How to end on condition

  • Creator
    Topic
  • #48498
    Theresa M Pacek
    Participant

      In a simple Xlate Iterate, when I meet a certain condition I want to break out of the iteration.  Is that possible, and how is it done?

      Thank you,

      Theresa M Pacek

      Interfaces/Senior Business Analyst

      855 N Church Ct

      Elmhurst, IL 60126

      630.833.8200 x73839

      tpacek@emhc.org

    Viewing 1 reply thread
    • Author
      Replies
      • #58786
        Jim Kosloskey
        Participant

          Theresa,

          I think if you do a SUPPRESS inside the condition (with no CONTINUE or SEND anywhere else) the Xlate will finish but no message will be generated.

          Otherwise, you always could put everything else under the condition on the path where you want to build the message and then the message will only get populated if the condition is false (still placing a SUPPRESS in the true Path.

          However, it sounds like you really are doing message filtering and for my money that is best done in Tcl prior to the Xlate (I like doing it as a pre-xlate in the route definition.

          Jim Kosloskey

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #58787
          Anonymous

            Theresa,

            I was raised with structured programming.  If it doesn’t have one entry and one exit, I won’t get a good night

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