echo the value in the loop variable in an xlt iterate block

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf echo the value in the loop variable in an xlt iterate block

  • Creator
    Topic
  • #54406
    John Bonnie
    Participant

    Hello all,

    For debug purposes I need to echo the value in the loop variable in an xlt iterate block.  Just doing a tcl echo %g1 (%g1 being the loop variable) doesn’t seem to work.  Any ideas?

    Thanks,

    John

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

      Use $%g1 in your Source for the Xlate Action where you have your echo, then reference xlateInVals (remember it is a list) to get that value.

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

    • #81342
      John Bonnie
      Participant

      Thanks Jim, that works.  Had to add a $ in front of the %g1 in the source box.

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

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,435
Topic Tags
286
Empty Topic Tags
10