If you're echoing, then remove the extra ()'s around it...

Code:
//echo -a $strip(%var1) == %var2


That's why that's doing what you see. But that's not the problem you're asking about... From your example, you have $1 in your variable. And the TEXT "$1" is not equal to the TEXT "OK". If you want to use the value of $1, then you need to evaluate it (or just put the value into the variable instead of the TEXT "$1").

Code:
if ($strip($eval(%var1,2)) == %var2) { }


Anything in your variable will be treated as text and will not be evaluated unless you tell mIRC to evaluate it. $1 as text is simply $1. It's not the value within $1. To get that, you use $eval().


Invision Support
#Invision on irc.irchighway.net