string.compare

Syntax

i := string.upper(s1,s2)

Compares two strings. Returns a value less than 0 if s1 < s2, 0 if they are the same, and greater than 0 if s1> s2.

Note that differs from the <, ==, and > operators in that this comparison is case-sensitive.

Returns:

i - Result of string comparison

Arguments:

s1 - First string to compare. s2 - Second string to compare.