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
Jan 4, 2022 | tcl | 0 comments
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
Subscribe now to keep reading and get access to the full archive.
Recent Comments