This should be simple, but I'm having brain freeze.
Basically
set passFailList [ list ]
set test 1
lappend passFailList { $test Pass "" }
puts $passFailList
What I want to see is passFailList = { 1 Pass "" }
however, what I am getting is passFailList = { $test Pass "" }
When I'm appending the list, the parameter $test is not getting evaluated. What do I need to use to accomplish this?
TIA
Basically
set passFailList [ list ]
set test 1
lappend passFailList { $test Pass "" }
puts $passFailList
What I want to see is passFailList = { 1 Pass "" }
however, what I am getting is passFailList = { $test Pass "" }
When I'm appending the list, the parameter $test is not getting evaluated. What do I need to use to accomplish this?
TIA