The comparison element is used to compare an input value fed into it to a pre-defined constant target value. All comparison triggers will pass the input value along to the next element. This allows you to chain multiple comparison elements together. See the “Comparison Element Chain” demo for an example.
The comparison element is located in the Element Toolbox within Studio’s Embedded tab.
The following properties can be changed for the comparison element:
The name of the element.
The logical condition used to compare the input value and target value. This element includes the following comparison options:
Less Than or Equal
Greater Than or Equal
The pre-defined constant value to compare to the input value.
The following triggers are available to execute events from within the comparison element:
Execute an event when the source element connected to the comparison triggers.
Execute an event when the specified condition is true. The input value will be passed along with this trigger.
Execute an event when the specified condition is false. The input value will be passed along with this trigger.
Execute an event when the provided input value is invalid. This typically will refer to a value that was non-numeric.
The following abilities are available for the comparison element when its source element triggers:
Trigger the element(s) that follow the comparison element.
Perform a comparison between the input value and the target value using the specified condition.