Iterate variables

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Iterate variables

  • Creator
    Topic
  • #55282
    Gary Holodnick
    Participant

      Is there a way to log iterate variables to the process log?

    Viewing 2 reply threads
    • Author
      Replies
      • #84799
        Jim Kosloskey
        Participant

          Using Tcl.

          I don’t do inline Tcl for Xlates but I have a proc which will echo whatever you identify in the source.

          The key is the variable when referenced as data (in the source or destination) needs to be prefixed with a $

          Like this $%g1.

          So place it in your Source as $%g1 (or whatever your variable is named) and in the Tcl echo [lindex xltInVals 0] (assuming only the $%g1 is in the Source).

          If you would like the echo proc I have, email me.

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

        • #84800
          Gary Holodnick
          Participant

            Thank you Jim. The dollar sign is the key.

          • #84801
            Jim Kosloskey
            Participant

              Sorry echo [lindex xltInVals 0] should be echo [lindex xlateInVals 0] of course. Bad keying on my part.

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

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