IF == comparing strings - 08/10/03 10:14 PM
im looking but cant find a operator that seems to work, maybe its staring me in the face, but i cant find it.
I want to compare two strings to see if they match, ok easy you say
if (%s1 == %s2) { or if (%s1 === %s2) {
problem appears when strings happen to contain values
%s1 = 0098
%s2 = 98
They match, im assuming mircs doing a numeric adjustment to them and saying the values the same.
So Is there a STRING== ?
I want to compare two strings to see if they match, ok easy you say
if (%s1 == %s2) { or if (%s1 === %s2) {
problem appears when strings happen to contain values
%s1 = 0098
%s2 = 98
They match, im assuming mircs doing a numeric adjustment to them and saying the values the same.
So Is there a STRING== ?