company logo

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