goto function-pos(a==b, c, d)


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 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 numeric 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.

Description of Parameters

Parameter

Description

a

Value to check for.

b

Compare value.

c

Position to continue in case of equality of the two values.

d

Position to continue in case of inequality of the two values.

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