How about $ifmatch(N) ... sorry my english is very bad.. so .. here is an example

Code:
alias auth {
  if (($input(Your Nick?,et)) && ($input(Password for this Nick,etp))) { 
  nick $ifmatch(1)
  msg nickserv identify $ifmach(2)
}

i think it wors an small idear.... but usefull.