proc {lalala} {
set up args
do somecode here
switch $something {
"somearg" {
dosomecode
return / break
}
"someotherarg" {
dosomeothercode
return / break
}
}
do more code here (outside of switch)
}
I have tried using return and break, to no avail. Can anyone point me to the right direction?
You don't break out of a switch statement.. it's not a loop.... you just do your branches, and then outside of the switch clause, you add your code. Simple as that.