|
compare
|
The compare function returns 0 if two objects: {obj1} and {obj2} are equivalent.
If the value of the first object {obj1} is less than the value of the second
object {obj1}, then -1 is returned. If {obj1} is greater than {obj2},
then +1 is returned.
When to use Use the compare function when you wish to compare two arguments of the
same Data Type and the result value needs to be represented as a numeric (0, 1 or -1).
If a Boolean result is desired, then the Comparison Functions (=, <>, <,
<=, >, >=) or the compareEQ, compareNE, compareGT, compareGE,
compareLT, compareLE should be used instead.
Returns 0 if the two CpxVector are equal, Returns -1 if vector1 is less
than vector2, returns +1 if vector1 is greater than vector2.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types vector1 The first CpxVector to be compared CpxVector vector2 The second CpxVector to be compared CpxVector
Returns:
Examples
Argument Types
How do I contact the AIS team?