next time don't forget to close the if statment with )

try this one
alias num { if ($1 == 1) { echo -a The number is one. } else { echo -a Unknown number. }}