I am having trouble with the lappend command. I set up a list, then append things to the list. When I try to echo the list later in my code the list is blank.
Does anyone know what is wrong?
Thank you,
Garrett
set newSegmentList [list 0]
lappend $newSegmentList [lindex $segmentList $loopCountOBR]
lappend $newSegmentList “NTE|||~*LAB CANCEL REQUEST* ~The test identified as: FE DEF PANEL has been cancelled. Please confirm receipt of the Lab within the EMR and FILE IN ERROR. Note: This cancel request should be removed from the chart.”