Everyone knows mIRC wouldn't be what it is today if it weren't for the if-statement. However, we as mIRC scripters are limited to about 33 different operators. I was thinking, we have custom commands, identifers, why not custom operators? I was thinking it would be something like this:
operator -l isin3 {
;$v1 is the first part of the if-statement
;$v2 is the seconds part of the if-statement
if (($gettok($v1,0,32) == 3) && ($v1 isin $v2)) return $true
return $false
}
on *:text:*:#my1337channel:{
if ($1- isin3 I AM A 1337 H4X0R!!!) msg $chan CORRECT PASSWORD, YOU ARE A REAL H4X0R!!!
}
on *:text:*:#another1337channel:{
if ($1- !isin3 Y HELO THAR MR H4X0R!!) inc %lines.#another1337channel
else msg $chan SECRET PASSWORD HAS BEEN DISCOVERED!!!
}
That example sucks, but I think you get the idea. I know you could easily do this with code, but by that logic, what's the point of $iif.