Just use $1, instead of $1- and your $iif is just wrong, should be just 'return %a', otherwise it won't work for $false (rare) and 0.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel