mIRC Home    About    Download    Register    News    Help

Print Thread
#85438 05/06/04 09:46 AM
Joined: Jan 2003
Posts: 109
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Jan 2003
Posts: 109
Hi
I have a script which outputs text to the channel in one 3 ways depending on what's in a changing variable pulled from a website.

if (%var isupper) msg #chan first way
if (thisword isin %var) msg #chan second way
else msg #chan third way

It works except for when the var isupper it sends to the channel in both the first and third ways rather than just the isupper line. Is there a way to stop it sending the third way too?

Cheers in advance for any help...


#Newsroom
Where News & Markets Connect
http://www.inewsroom.net
#85439 05/06/04 09:57 AM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
if (%var isupper) msg #chan first way
elseif (thisword isin %var) msg #chan second way
else msg #chan third way

Both else if and elseif work

More info /help if then else

#85440 05/06/04 10:07 AM
Joined: Jan 2003
Posts: 109
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Jan 2003
Posts: 109
great thanks Kelder =)


#Newsroom
Where News & Markets Connect
http://www.inewsroom.net

Link Copied to Clipboard