Reply To: What is wrong with this for loop?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf What is wrong with this for loop? Reply To: What is wrong with this for loop?

#58755
Jim Kosloskey
Participant

    Hyunyoung,

    Try putting whitespace between your end and start curly braces like this:

    for {set idx 0} {$idx < 6} {incr idx 1} {  set tempVar [lindex $xlateInVals $idx]  set count [expr $count+[string length $tempVar]] }

    email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.