See also: compare |
Determines whether or not two strings are equal.
JSV_compareNoCase(expS1, expS2)
expS1.compareNoCase(expS2)
The compareNoCase function returns true if expS1 and expS2 are equal.
The compareNoCase function uses the following arguments.
Argument | Description |
expS1 | One of the strings that is to be evaluated for equality. |
expS2 | The other string that is to be evaluated for equality. |
n/a
n/a
The following lines of code
var testString1 = "bob", testString2 = "Bob";
document.write("Is " + testString1 + " is equal to " + testString2 + "? " +
testString1.compareNoCase(testString2) );
var testString1 = "BOB", testString2 = "Bob";
document.write("Is " + testString1 + " is equal to " + testString2 + "? " +
testString1.compareNoCase(testString2) );
var testString1 = "Bob", testString2 = "Bob";
document.write("Is " + testString1 + " is equal to " + testString2 + "? " +
testString1.compareNoCase(testString2) );
produce
Copyright © 1998-2002 Roaring Fork Software. All rights reserved.