I need help with my script, i have problem with lsearch command, return bad value
Script:
#make a list
set List1 [list 5,83.21,Text1,text1 3,83.22,TeXt2,text2 1,83,23,Tex[t,tex[t]
# List1 = {5,83.21,Text1,text1 3,83.22,TeXt2,text2 1,83,23,Tex[t,tex[t}
#list search
set Var1 {tex[t}
set Var2 "*,$Var1"
set VarIndex [lsearch $List1 $Var2]
VarIndex is set 0, when it must set 2.
Somebody can help me?