The following functions can be used to compare values.
Function | Description | Arguments | Example |
---|---|---|---|
equals
|
Returns true if the first two arguments are equal.
All supported literals can be used. The third argument allows you to specify
an epsilon to check a non-strict equality. It can be used only if at least
one of the values to compare is a real number. The other number can be a
real number, a string representation of a real number or bytes. |
|
Expression: equals(1.57, 1.58, 0.1F)
Result: |
greater
|
Returns true if the first argument is greater than
the second argument. All supported literals can be used. The third argument
allows you to specify an epsilon to check a non-strict equality. It can be
used only if at least one of the values to compare is a real number. The
other number can be a real number, a string representation of a real number
or bytes. |
|
Expression: greater(2,3)
Result: |
greaterOrEqual
|
Returns true if the first argument is greater than or equal
to the second argument. All supported literals can be used. The third argument
allows you to specify an epsilon to check a non-strict equality. It can be used
only if at least one of the values to compare is a real number. The other number
can be a real number, a string representation of a real number or bytes. |
|
Expression: greaterOrEqual(1, 0xFF)
Result: |
lower
|
Returns true if the first argument is lower than the
second argument. All supported literals can be used. The third argument
allows you to specify an epsilon to check a non-strict equality. It can be
used only if at least one of the values to compare is a real number. The
other number can be a real number, a string representation of a real number
or bytes. |
|
Expression: lower(1.5, 2, 0.1D)
Result: |
lowerOrEqual
|
Returns true if the first argument is lower than or
equal to the second argument. All supported literals can be used. The third
argument allows you to specify an epsilon to check a non-strict equality. It
can be used only if at least one of the values to compare is a real number.
The other number can be a real number, a string representation of a real
number or bytes. |
|
Expression: lowerOrEqual(42.4,42.2,1F)
Result: |