mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2004
Posts: 9
T
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Apr 2004
Posts: 9
Is it possible to shorten this code into one line?...

Code:
if ( $comchan($$1,0) > 0 ) { /return $true }
else { /return $false }


Thanks!

Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
return $iif($comchan($$1,0) > 0,$true,$false)

Edit: Missed a bit.

Last edited by Collective; 02/04/04 03:58 AM.
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Or just /return $comchan($$1,0) - this would make your alias even more informative.


Link Copied to Clipboard