top of page

Looping with foreach in TCL

Admin

When you have unsorted list, foreach can be handful


set randomlist {orange blue 4 6 Türkiye 8 France cat dog}
foreach i $randomlist {
puts "i = $i"
}

 

i = orange

i = blue

i = 4

i = 6

i = Türkiye

i = 8

i = France

i = cat

i = dog

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...

Comentarios

Obtuvo 0 de 5 estrellas.
Aún no hay calificaciones

Agrega una calificación

© 2023

 
bottom of page