sunslayer commented on a Page, Switch Statement in msl  -  Feb 28, 2011

here's an example alias:

alias tests {
  switch $1 $&
    case 1: $&
    echo -a Hello $!+ $!chr(124) $chr(124) echo -a World! $&
    break $&
    case 2: $&
    echo -a Hello World! $&
    break $&
    case 3: $&
    echo -a $me $&
    break $&
    default: $&
    echo -a Default case $&
    break
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.