$intCompare = Compare (
< string1 > , < string2 > )
Parameters
< string1
> , < string2 > Any two string expressions.
Return Values
- -1 if
string1 is less than string2
- 0 if
string1 is equal to string2
- 1 if
string1 is greater than string2
Remarks
- Compare()
performs case-sensitive comparisons.
Example
$a = "ABCD"
$b = compare($a,"ABCD")