top of page
Search

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
Comparison CROD, CBAR and CBEAM

CROD, CBAR and CBEAM are one of the most popular 1d elements in Nastran. Reflecting real behaviour of structural is crucial for FEM. So,...

 
 
 
Reading a csv file by using tcl

Reading a csv file procedure is similar to the other programming languages. # Open the CSV file in read mode set filePath...

 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating

© 2023

 
bottom of page