top of page

While loop for TCL

  • Admin
  • Feb 14, 2024
  • 1 min read

Until i becomes 11 the loop continue to puts $i

set i 1
while {$i < 11} {
    puts "i = $i"
    incr i
}

Output

i = 1

i = 2

i = 3

i = 4

i = 5

i = 6

i = 7

i = 8

i = 9

i = 10

Recent Posts

See All
Spring elements in NASTRAN

In structural analysis, spring elements play a key role in simulating flexible connections, supports, joints, and contact interactions....

 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating

© 2023

 
bottom of page