goto function-pos(a==b, c, d)
This function compares a and b and continues the processing of the function chain depending on the result. If there is equality, the processing continues at position c, if there is inequality the processing continues at position d. A jump back to a previous position is not possible and will lead to an error.
The check depends on data types of parameters a and b.
If both arguments are of type String a string comparison is performed. If one argument is of type Boolean, the other one will be converted to Boolean and a boolean comparison is done. In all other cases, a numerical comparison will be performed using BigDecimal. Dates and Timestamps are converted to 'Unix time', i.e. the number of milliseconds since 1970-01-01 00:00:00 in order to compare them numerically.
Parameters
Parameter |
Description |
a |
Value to check. |
b |
Compare value. |
c |
Function position to continue at in case of equality of the two values. Example: "2". |
d |
Function position to continue at in case of inequality of the two values. Example: "4". |
Examples
Parameter a |
Parameter b |
Parameter c |
Parameter d |
Continue processing at function chain position |
value |
value |
3 |
10 |
3 |
value |
othervalue |
3 |
10 |
10 |