mIRC Home    About    Download    Register    News    Help

Print Thread
Comparing strings (case insentivite) #117701 18/04/05 01:00 PM
Joined: Apr 2005
Posts: 2
G
Genocaust Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
G
Joined: Apr 2005
Posts: 2
I really feel like a noob for this...But I've been trying various methods for a few hours without success.

I need to see if a variable string, %who, evaluates out to $me.

if($me != %who) { blah }

Hasn't shown me much success...I tried searching before posting this, but couldn't seem to find anything 100% on the nose.

Also help with if(name != %var) { xxx } would be appreciated, too.

Re: Comparing strings (case insentivite) #117702 18/04/05 01:11 PM
Joined: Apr 2005
Posts: 18
B
BarGarth Offline
Pikka bird
Offline
Pikka bird
B
Joined: Apr 2005
Posts: 18
try a space between if and (

Code:
  
if ($me != %who) { blah }

Re: Comparing strings (case insentivite) #117703 18/04/05 01:14 PM
Joined: Apr 2005
Posts: 2
G
Genocaust Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
G
Joined: Apr 2005
Posts: 2
Wow...I can't believe I missed that blush Just shows sometimes all you need is a 3rd party to look at it...