Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
Stupid Question about /return
Forums
Active Threads
Search
Who's Online
Help
Print Thread
Stupid Question about /return
#
77512
02/04/04
03:54 AM
Joined:
Apr 2004
Posts: 9
T
TristanWolf
OP
Nutrimatic drinks dispenser
OP
TristanWolf
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!
Copy Link to Clipboard
Re: Stupid Question about /return
#
77513
02/04/04
03:56 AM
Joined:
Dec 2002
Posts: 3,015
London, UK
C
Collective
Hoopy frood
Collective
Hoopy frood
C
Joined:
Dec 2002
Posts: 3,015
London, UK
return $iif($comchan($$1,0)
> 0
,$true,$false)
Edit: Missed a
bit
.
Last edited by Collective;
02/04/04
03:58 AM
.
Copy Link to Clipboard
Re: Stupid Question about /return
#
77514
02/04/04
03:59 AM
Joined:
Dec 2002
Posts: 1,893
O
Online
Hoopy frood
Online
Hoopy frood
O
Joined:
Dec 2002
Posts: 1,893
Or just /return $comchan($$1,0) - this would make your alias even more informative.
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage