Checks if a is equal to b and returns a if that is the case. If the values differ, the processing will be stopped with an optional error message c. If no error message is defined, a standard error message is used.
Placeholders &a and &b can be added to the error message and will be replaced by the values of parameters a and b respectively.
Parameters
Parameter | Description |
|---|---|
a | Value to be checked. |
b | Compare value. |
c | (optional) Error message that is output if the two values are not equal. |
Examples
Parameter a | Parameter b | Parameter c | Result | Mapping aborted |
|---|---|---|---|---|
abc | abc | abc | No. | |
12 | 9 | Yes, with error message 12 is not equals 9. | ||
abc | abc | Error: '&b' expected, but got '&a' | abc | No. |
12 | 9 | Error: '&b' expected, but got '&a' | Yes, with error message Error: '9' expected, but got '12'. |