Wanted to execute some statements in a proc a certain number of times until a max counter is reached. What am I missing in the following because it only loops once only and I wanted to execute some statements 5 times.
proc loop
set countbeg 0
set countmax 5
while { $countbeg < $countmax } {
incr countbeg
statements to execute...
}