Compare Integer Value
Summary
Compares an integer input value with a specified constant and outputs a digital result based on the comparison.
Description
The **Compare Integer Value** component evaluates the incoming integer on **In** against the configured **Value** using the selected **CompareType** (e.g., equal, greater than, less than, etc.). The component can optionally output changes only when the result differs from the previous evaluation. This is useful for detecting threshold crossings or specific matching values in integer streams.
Diagram:
Categories
Category Measurement - Measurement components category
Properties
- Value – Integer constant to compare against.
- CompareType – Defines the type of comparison (Equal, Not Equal, Greater, Greater or Equal, Less, Less or Equal).
- OnlyChanged – Boolean – when True, the output changes only when the comparison result changes; when False, the output updates continuously.
- Enabled – Enables or disables the component.
Pins
- Out – Digital output that is HIGH (true) or LOW (false) depending on the comparison result.
- In – Integer input to be compared against the **Value**.