2.3. Compare - Access functions - comparison
Values of different type and complexity can be compared. In order to compare values of different types, the left operator (parameter) is converted into the format of the right operator before comparing values. When conversion between operands is not supported, an exception will be thrown (conversion error).
for comparing a single array elements, an array index operator [] has to be added to the value. Otherwise, conversion provides an array or complex instance, which fits to the left operand.
When comparing arrays or complex values with string values, the string value should be passed as right operand, since this provides more precise result.
Functions
- canCompare - Check values for comparability
- compare - Compare the values for two value handles
- operator!= - Compare two property instances (not equal)
- operator< - Compare two property instances (less)
- operator<= - Compare two property instances (less or equal)
- operator== - Compare two property instances (equal)
- operator> - Compare two property instances (greater)
- operator>= - Compare two property instances (greater or equal)