If you want an error message then you should use this:
alias for { var %n = $1 if (%n isnum) { while (%n != 0) { $2- dec %n } } else { echo 4 -as Error in For Loop } }