mIRC Home    About    Download    Register    News    Help

Print Thread
Double $$ #11253 15/02/03 02:21 PM
Joined: Dec 2002
Posts: 15
N
Nakis Offline OP
Pikka bird
OP Offline
Pikka bird
N
Joined: Dec 2002
Posts: 15
from mirc.hlp:
Code:
The double $$ means that this command will only be executed if a parameter is specified.

i think that it would be pretty handfull if we could specify a command to be executed, if the requested parameter was $null (something like $iif).

Re: Double $$ #11254 16/02/03 06:25 PM
Joined: Dec 2002
Posts: 17
N
nimper Offline
Pikka bird
Offline
Pikka bird
N
Joined: Dec 2002
Posts: 17
I think you pretty much solved your own problem. Just use $iif.

$iif($blah,$blah,bleh)

Re: Double $$ #11255 18/02/03 05:57 PM
Joined: Dec 2002
Posts: 29
N
Nem3sis Offline
Ameglian cow
Offline
Ameglian cow
N
Joined: Dec 2002
Posts: 29
Quote:
$iif($blah,$blah,bleh)


I'd use $iif($blah,$ifmatch,bleh) as in most cases the $blah is more like $blah($bloh($blih),$bluh).bleh laugh