![]() ![]() |
|
COMPAREThe COMPARE function compares two strings and returns a value indicating whether or not they are equal.
COMMAND SYNTAXCOMPARE(expression1, expression2{, justification})
SYNTAX ELEMENTSexpression1 is the first string for comparison The function will return one of the following values:
EXAMPLE
The code above displays 1 -1 which indicates that XY999 is greater than XY1000 in a left justified comparison and XY999 is less than XY1000 in a right justified comparison.
INTERNATIONAL MODE When using the COMPARE function in International Mode, the function will use the currently configured locale to determine the rules by which each string is considered less than or greater than the other will.
|