mIRC Homepage
Posted By: TRT multiple commands - 01/08/03 11:58 AM
hi
i want to perform multiple commands with $iif
for example:

did -i $dname 7 2 +r $iif(%setup.icons,$ifmatch | inc %setup.icons,3) $chr(9) $did($dname,13).text
(doesn´t work frown)
Posted By: starbucks_mafia Re: multiple commands - 01/08/03 12:04 PM
Can't be done. Just use /if.
Posted By: codemastr Re: multiple commands - 01/08/03 03:53 PM
Well it could be done, just not like that

alias dostuff {
$1-
inc %setup.icons
}

$iif(%setup.icons,dostuff $ifmatch,3)

But of course, for that to work %setup.icons must be a global variable.
Posted By: starbucks_mafia Re: multiple commands - 01/08/03 06:59 PM
Well it can be done in a workaround way like that. But IMO that's highly ugly and confusing as opposed to:
Code:
did -i $dname 7 2 +r $iif(%setup.icons,$ifmatch,3) $chr(9) $did($dname,13).text
if (%set.icons) inc %setup.icons
Posted By: codemastr Re: multiple commands - 01/08/03 07:14 PM
Yeah I wasn't saying it was the best way to do it, just saying it could be done.
© mIRC Discussion Forums