snowingnow
Programmer
I have nested loop, how can i terminate the loop if i find the seaching thing
such as
foreach a listvalue1 {
foreach b listvalue2 {
if {$b=$a}{
set c "something"
i want to abort to outnner most
}
else {
keep doing both loop}
...
how can i do that?
thanks
such as
foreach a listvalue1 {
foreach b listvalue2 {
if {$b=$a}{
set c "something"
i want to abort to outnner most
}
else {
keep doing both loop}
...
how can i do that?
thanks