check(a, b[, msg c])


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 error message, that an optionally be defined with c. If no message is defined, a standard 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.

Description of Parameters

Parameter

Description

a

Value to be checked for.

b

Compare value.

c

Optional exception message.

Examples

Parameter a

Parameter b

Parameter c

Result

Processing Finished

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.