is there anything like "select case"/"switch"?

eg:

Code:
case $1 {
 :001 return we got 001
 :002 echo -a Something else
 :default echo -a Default case
}


at the moment im using something like that, but with Goto...

eg
Code:
goto $1
 :001
  { return we got 001 | goto break }
 :002
  { echo -a Something else | goto break }
 :break
 


(no default)

Is there a cleaner way to do this?

Last edited by The_JD; 21/07/08 11:39 AM.

[02:16] * Titanic has quit IRC (Excess Flood)