ovl3554
ovl3554

Reputation: 1

Writing for loop for list in tcl

Trying to use a for loop to do dft_scan_1 all the way to 163 Write now I have

For {set a 0} {$a < 164} {incr a}

Confused on where to go from here

Upvotes: 0

Views: 430

Answers (1)

Chris Heithoff
Chris Heithoff

Reputation: 1863

You example so far is missing the body of the loop.

What are you doing with your variable for each iteration?

for {set a 0} {$a < 164} {incr a} {
    # body of loop here....
    puts "The value of a is $a"
}

Upvotes: 1

Related Questions