Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › echo the value in the loop variable in an xlt iterate block
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
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.
Thanks Jim, that works. Had to add a $ in front of the %g1 in the source box.