mIRC Home    About    Download    Register    News    Help

Print Thread
#39160 01/08/03 11:58 AM
Joined: Jun 2003
Posts: 81
T
TRT Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Jun 2003
Posts: 81
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)

#39161 01/08/03 12:04 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Can't be done. Just use /if.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#39162 01/08/03 03:53 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
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.

#39163 01/08/03 06:59 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#39164 01/08/03 07:14 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Yeah I wasn't saying it was the best way to do it, just saying it could be done.


Link Copied to Clipboard