This module provides a way to compare variables and to re-direct end-users to a different area of the call-flow based on the value of a variable.
Additional comparison conditions can be added / removed from the module by pressing the add and remove ( ) buttons.
If a comparison condition is true, the call will be directed to the node to the side of that condition ( ).
If none of the conditions are true, the call will go through the node at the bottom of the module ( ) .
Depending on the value and variable in the comparison, the correct type should be used to avoid any unexpected results.
The three types of comparison that are supported in this module are:
The currently selected comparison type will also show up on the module above the comparison drop down.
For more information, please refer to the compare types section under settings.
This module is commonly used with end-user input, or when getting results from a webservice for branching into different parts of the call flow based on the result.
Note: For a simpler increment counter, the Counter ( ) can be used instead of the comparison as it has a built in increment logic for the counting variable.
The following comparison operators can be selected in the drop down
It is recommended to only use the equals ( = ) and not equals to ( ≠ ) operators for string and boolean types.
| This setting controls the logging function of a module.
Enabling the 'Private' setting instructs the module to not record, report, or retain the information input to that module for reporting or any other purposes. When enabled any information entered into a module during a call will be lost immediately when the call terminates.
The 'Private' setting is critical for businesses that need to maintain PCI-DSS or HIPAA compliance.
The module icon, in the upper left-hand corner, becomes grayed-out when this setting is enabled. See more details here.
There are 3 different types of comparisons that can be used in the module.
Most of the variables generated by input modules in the Fuse application are by default string types, therefore it is important to set the correct type when doing comparisons.
|String|| The string compare type is used by default in the module. |
Only = or ≠ operators should be used for string types.
|Boolean|| True or False should be used for boolean comparisons. |
Only = or ≠ operators should be used for boolean types.