Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object String Methods >

Clib.stricmp() Method and Clib.strcmpi() Method


These methods make a case-insensitive comparison of two strings.

Syntax

Clib.stricmp(string1, string2)
Clib.strcmpi(string1, string2)

Parameter
Description

string1

A string, or a variable containing a string, to be compared with string2

string2

A string, or a variable containing a string, to be compared with string1

Returns

The result of the comparison, which is 0 if the strings are identical, a negative number if the ASCII code of the first unmatched character in string1 is less than that of the first unmatched character in string2, or a positive number if the ASCII code of the first unmatched character in string1 is greater than that of the first unmatched character in string2.

Usage

These methods continue to make a case-insensitive comparison, one byte at a time, of string1 and string2 until there is a mismatch or the terminating null byte is reached.

See Also

Clib.strncmp() Method
Clib.strncmpi() Method and Clib.strnicmp() Method

Siebel eScript Language Reference