And you get 6 when $2 is 0

Never use $iif unless speed execution doesn't matter and it really avoids repetition

I like Sakana's idea
Code:
var %2 = $2
if (%2 == $null) %2 = 6

Last edited by Wims; 25/06/15 12:23 PM.

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