This is a generic reply:
LocutosOfBorg: Yes, I had actually thought of that, but for what I need it to do, its kind of pointless.
Qwerty, I hadn't thought of doing that, but anyway.
However, yes, whilst $iif is only "meant" to return a T/F flag or value, it can be used to run commands.
mIRC interprets whatever is in the T position to be returned whenever an item is true, thus, if a command is placed there, it gets run, the same is said for false data. Whether or not this is the default behaviour or not, it doesn't matter, all I know is that its possible to execute commands from the $iif, and I love it. In fact, $iif has almost become my scripting best friend
(Sad isn't it :P)
*edit addendum*
Oh, I also love the fact that it makes it really easy to evaluate things on the fly in the editbox before commiting the script to disk. Of course one can do this other ways, but I like to be slightly different.
$iif($identifier meets $condition, lets play ball, return)I use $iif simply because it is a whole lot quicker to type it out in some cases than to go into an extremely unecessary four line if statement (trust me, I'd rather get it done in one line and half the characters than in 4 times the lines, and so on).
For the moment, I've just decided to use multiple $iif statements.
And trust me, if you'd seen the length of my configuration dialog statments before I changed all I could over to $iif, then you'd understand why I did. I literally cut the length down by three quarters.