end_relative.tcl set letters {a b c d e f g} set third_last [lindex $letters end-2] puts "The third last letter is $third_last" This retrieves the third last element using end-2 syntax. The end keyword represent
lindex(TCL) lindex --retrieve an element from a list lindex Description lindex end