I use goto sometimes but itís usually cleaner to script without them.
Code:
 
alias err {
  if ($1 == 1) {
    if ($exists("sound.mp3") == $true) splay -q "sound.mp3"
  }
  elseif ($2 == 1) {
    if ($exists("sound.mp3") == $true) splay -q "sound.mp3"
  }
}


Hmm, you are already testing for if the sound file exists, I havenít had mirc error on a sound file if itís found, try this:
Code:
 
alias err {
  if ($1 == 1) {
    if ($exists("sound.mp3") == $true) splay -q "sound.mp3"
  }
  elseif ($2 == 1) {
    if ($exists("sound.mp3") == $true) splay -q "sound.mp3"
  }
  :error
}


Since both use the same found file you can write it this way:
Code:
 
alias err {
  if (($1 == 1) || ($2 == 1)) {
    if ($exists("sound.mp3") == $true) splay -q "sound.mp3"
    else echo -s "sound.mp3" not found in alias err
  }
  :error
}