Iterate Help with a repeating field

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Iterate Help with a repeating field

  • Creator
    Topic
  • #48577
    Tim Newton
    Participant

      I don’t know if these iterate that I wrote makes any sense.  I am trying to get IN1 and IN2 to repeat.  I am getting the IN1 and IN2 to repeat but everything is repeating.  I am still new to cloverleaf and I am sure I am doing some stupid mistake.  Any suggestions?

      { { OP ITERATE }

         { BASIS 1(0).0 }

         { VAR %g1 }

         { TYPE group }

         { BODY {

             { { OP PATHCOPY }

                 { ERR 0 }

                 { IN 1(0).0(%g1).IN1 }

                 { OUT 3(0).0(0).IN1 }

             }

             { { OP PATHCOPY }

                 { ERR 0 }

                 { IN 1(0).0(%g1).IN2 }

                 { OUT 3(0).0(0).IN2 }

             }

             { { OP CONTINUE } }

             { { OP PATHCOPY }

                 { ERR 0 }

                 { IN @null }

                 { OUT 3(0).0(0).IN1 }

             }

             { { OP PATHCOPY }

                 { ERR 0 }

                 { IN @null }

                 { OUT 3(0).0(0).IN2 }

             }

             { { OP COMMENT }

                 { COMMENT {TODO: Insert new actions here} }

             }

         }}

      }

      { { OP SUPPRESS } }

    Viewing 0 reply threads
    • Author
      Replies
      • #59035
        Jim Kosloskey
        Participant

          Tim,

          Try putting the Iteration Counter in the appropriate location on the destination address path.

          Jim Kosloskey

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

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