Overview
In DataXchange there are only two places where calculations can occur and be used for non-comparison functionality, parameters for variables and custom variable targets.
The calculations can occur only when the four math operators are included in an expression: PLUS, MINUS, MULTIPLY and DIVIDE.
CUSTOM VARIABLES
Examples:
1. The value for some_custom_variable will be the current value for ‘[MTC.xcom]’. If ‘[MTC.xcom]’ is ‘1’, then the some_custom_variable value will be ‘1’.
[PCSDB.send_save_custom_variable_value] {some_custom_variable} == [MTC.xcom]
2. The value for some_custom_variable x_following_error will be the value ‘32’.
[PCSDB.send_save_custom_variable_value] {x_following_error} == 32
3. The value for some_custom_variable will be the value ‘3’.
[PCSDB.send_save_custom_variable_value] {x_following_error} == (5 MINUS 2)
4. The value for some_custom_variable will be the value ‘10’.
[PCSDB.send_save_custom_variable_value] {x_following_error} == (5 MULTIPLY 2)
5. The value for some_custom_variable will be the value ‘(5 > 2)’.
[PCSDB.send_save_custom_variable_value] {x_following_error} == (5 > 2)
6. The value for some_custom_variable will be the value ‘(5 < 2)’.
[PCSDB.send_save_custom_variable_value] {x_following_error} == (5 < 2)
NOTE: This functionality will also work for [PCSDB.send_custom_variable_indicator].
IMPORTANT: The previous syntax for this was using a single ‘=’ sign. It has been changed to double ‘==’ equal signs so it is not confused with the single ‘=’ equal sign used for comparisons.