I have a total of 750 count. And each set is 5. Instead of doing many for loop, for {set i 0} {i < 5}, for {set i 5} {i < 10}, for {set i 10} {i < 15}..... Every 5 count, will insert "GOOD".
for {set i 0} {i < 750} {incr i} {
puts $i
if { i * 15} {
puts GOOD
}
Here is the output I am expecting:
0 1 2 3 4 GOOD
5 6 7 8 9 GOOD
10 11 12 13 14 GOOD
15 16 17 18 19 GOOD
Last output 745 746 747 748 749 GOOD