compare
compare |
Purpose
Compare 2 values.
Synopsis
function compare(arg1:ordered type, arg2:same type as arg1):integer
Arguments
arg1
|
First operand for the comparison
|
arg2
|
Second operand for the comparison (same type as
arg1)
|
Return value
0 if arguments are identical,
-1 if the first argument is less than the second argument and
1 otherwise.
Further information
This function is defined for integer, real, string and boolean variables. It is also available for module types that implement the necessary functionality.