The syntax for length of list is

llength listName

Example:

set var {orange blue red green}
puts [llength $var]

Discover more from Tips and Hints for Aerospace Engineers

Subscribe now to keep reading and get access to the full archive.

Continue reading