|
compare
|
The compare function returns 0 if both Object Repository arguments are equivalent.
Two Object Repositories are equal if they are the same file. If Object Repository1's filename
{aGor1} is less than Object Repository2's filename {aGor2}, then -1 is returned.
If Object Repository1's filename {aGor1} is greater than Object Repository2's filename
{aGor2}, then +1 is returned.
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 Object Repositories are equal.
Returns -1 if the aGor1 is less than aGor2.
Returns +1 if aGor1 is greater than aGor2.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Example_ObjectRepository_compare_021
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 aGor1 The first Object Repository to be compared. ObjectRepository aGor2 The first Object Repository to be compared. ObjectRepository
Returns:
Examples
Argument Types
How do I contact the AIS team?