Compare Binary Value
Jump to navigation
Jump to search
File:TArduinoCompareBinaryValue.png
Summary
Compares an incoming binary value to a preset reference and outputs true or false accordingly.
Description
The **Compare Binary Value** component evaluates a binary input against a configured constant based on the selected compare type: - **Compare Type**: Choose from **ctEqual** (true if input equals the reference) or **ctNotEqual** (true if input does not match the reference). - **Enabled**: When **False**, the component remains inactive and **always outputs false**, regardless of the input value. - **Value**: The reference binary value used for comparison.
This component is handy for logic flows where certain binary codes or flags need detecting before triggering downstream actions.
Diagram:
Categories
- File:TArduinoBinaryCategory.png Category Binary - Components related to binary data processing
Properties
- Compare Type – `ctEqual` or `ctNotEqual`.
- Enabled – When disabled, the component does not compare and outputs false.
- Value – The binary reference value to compare against.
Pins
- In – Binary input to be compared.
- Out – Boolean output: result of the comparison or always false if disabled.