top of page

Creating for loop in tcl

  • Admin
  • Feb 12, 2024
  • 1 min read

You can create a for loop in TCL like below;

for {set i 0} { $i < 5} {incr i} {
puts “Loop number is : $i”
}

Output:

Loop number is : 1

Loop number is : 1

Loop number is : 1

Loop number is : 1

Loop number is : 1

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