hi,
i want to check whether the x is a empty list, if not empty list i want perform some function, below is the code.
The function that i want to perform is: I have 2 list, and i want to check whether this 2 list have the same element or not? if not the same, get the extra element.
foreach i $io {
if { $x == ""} {
continue
} elseif { $x != ""} {
if {[lsearch -exact $x $i] == -1} {
lappend y $i
}else {
set x $io
}
please advice.
Thanks
i want to check whether the x is a empty list, if not empty list i want perform some function, below is the code.
The function that i want to perform is: I have 2 list, and i want to check whether this 2 list have the same element or not? if not the same, get the extra element.
foreach i $io {
if { $x == ""} {
continue
} elseif { $x != ""} {
if {[lsearch -exact $x $i] == -1} {
lappend y $i
}else {
set x $io
}
please advice.
Thanks