LOTUSSCRIPT LANGUAGE


StrCompare function
Example

Compares two strings and returns the result.

Syntax

StrCompare ( string1 , string2 [ , compMethod ] )

StrComp is acceptable in place of StrCompare.

Elements

string1


string2
compMethod
Return value

The following table shows what StrCompare returns, depending on the relationship between the strings being compared.

Strings being comparedStrCompare result
Either string is NULL NULL
string1 is less than string2 -1
string1 equals string2 0
string1 is greater than string2 1

Language cross-reference

@Compare function in formula language

Example
See Also