Example only:
on *:text:!count*:#:{
var %number = $2
if %number == 1 { say One }
elseif %number == 2 { say Two }
else say What?
}
If you search the Feature Suggestions section, you will find that some people have requested that the Case structure be added to the mIRC scripting area, so that your example would work directly.