- -1, if string1 is less than string2
- 0, if string1 is equal to string2
- 1, if string1 is greater than string2
Syntax :
Compare(string1, string2)
Parameter Description
string1 A string or a variable that contains one
string2 A string or a variable that contains one
Compares the values of corresponding characters in string1 and string2.
Coding :
Source: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi37.htm#wp1101820
No comments:
Post a Comment