Or even faster.
Code:
alias test {
  var %a = $1
  goto %a
  :1
  echo -a 1 
  return
  :2
  echo -a 2
  return
  :%a
  echo Default
}
 
/test 1 ... 1
/test 2 ... 2
/test 3 ... Default

Labels, however, cannot contain spaces. If you have a label named "1", and another label named "1 2", doing a /goto 1 2 will jump to the first one.