The syntax for copying values to variables is

lassign listname variable1 variable2.. variablen

Example:

set list {orange blue red green}
lassign $list var1 var2
puts $var1
puts $var2

Result:

orange
blue

Discover more from Tips and Hints for Aerospace Engineers

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

Continue reading