I have a question about the for loop,
for {{set loop 0} {$loop < 100} {incr loop}} {
#do someting here
}
loop goes from 0 to 99, and I do something for each value of loop, but if the loop is 3, I will skip it, so, is there any filter in tcl to achieve it or we should write it as:
for {{set loop 0} {$loop < 100} {incr loop}} {
if {loop != 3} {
#do someting here
}
}
You can use the “continue” command. For example: