Select case - 21/07/08 10:38 AM
is there anything like "select case"/"switch"?
eg:
at the moment im using something like that, but with Goto...
eg
(no default)
Is there a cleaner way to do this?
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?