mIRC Homepage
Posted By:
holbrook
if in channel
-
29/07/13
11:01 AM
Is there an easy if-then-else statement I can
use to determine if I am in a specific channel?
Posted By:
Crinul
Re: if in channel
-
29/07/13
11:53 AM
Originally Posted By: "Help file"
ison
nickname v1 is on channel v2
Code:
if ($me ison #channel) echo TRUE else echo FALSE
/help if then else
/help $me
Posted By:
holbrook
Re: if in channel
-
29/07/13
10:37 PM
That works perfect. Was thinking isin vs ison. Thanks!
Posted By:
Tomao
Re: if in channel
-
29/07/13
11:29 PM
isin operator means to see something inside a string, so if
$me isin $chan
will have to tell mirc to check if your nickname is within the channel name.
#chan_holbrook
<- this channel name will trigger the isin operator.
I've seen them both used mistakenly in the past.
©
mIRC Discussion Forums