mIRC Home    About    Download    Register    News    Help

Print Thread
#234908 14/11/11 10:16 PM
Joined: Nov 2011
Posts: 52
E
eawedat Offline OP
Babel fish
OP Offline
Babel fish
E
Joined: Nov 2011
Posts: 52
hey all,

Is there difference between these commands below?

Code:
if (test iswm test) { }
if (test == test) { }
 


case-sensitive:
Code:
if (tesT iswmcs tesT) { }
if (tesT === tesT) { }


I am not sure but I could say that iswm & iswmcs could use wild-chars while equal signs DO NOT.

I hope my guess is right!

thanks.

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
They are the same. Your guess is right, and if you read /help /if, this is confirmed in the operator documentation.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
They function the same, except for the case-sensitive and insensitive comparison. For the iswm or iswmcs, you can use the asterisk symbol one either side of the word "test" to indicate a wildcard match.


Link Copied to Clipboard