Docs Menu
API Developer Guide / middleware / pub / string / compareStrings

Service: compareStrings

This service will compare whether the first string is less than, equal to, or greater than the second string.

Input Parameter:

Name Type Description
string1: String First String
string2: String Second String

Output Parameter:

Name Type Description
result: Integer This will have three values
1: string1 is less than string2
0: string1 is equal to string2
-1: string1 is less than string2