It's messy because you're using braces and pipes where you need not use them, and the vars don't need to be used at all either. See the following:
alias modenum return $iif($findtok(+ % @ & ~,$left($nick(#,$1).pnick,1),32),$v1)