Equals
This function block compares numeric values and outputs a boolean result indicating whether all provided numbers are equal. It is ideal for exact-match checks, setpoint comparisons, and simple equality-based decisions in your visual flow.
π₯ Inputs
Number This numeric input (socket) accepts one of the values to compare.
Number This numeric input (socket) accepts another value to compare.
Note: You can provide two or more numeric inputs by adding extra numeric sockets in the block's UI.
π€ Outputs
Boolean This output (socket) is TRUE when all connected numeric inputs are equal, otherwise FALSE.
πΉοΈ Controls
Add / Remove Input Sockets Use the block UI to add or remove numeric inputs when you need to compare more than two values.
There are no additional parameter sliders or dropdowns for this blockβits behavior depends only on the connected numeric inputs.
βοΈ Running Mechanism
When the block runs, it checks whether every numeric input has the same value. If every value matches exactly, the block outputs TRUE on the Boolean socket. If any value differs, it outputs FALSE. The block evaluates every time the connected inputs are updated.
β¨ Features
Exact equality check across multiple numeric inputs.
Flexible number of inputs β add more numeric sockets via the UI to compare more values.
Simple, low-latency logic suitable for setpoint detection and equality gates.
π Usage Examples
Compare a sensor reading with a fixed setpoint provided by a
Number Inputto trigger actions when they match.Compare multiple counters or discrete status values to confirm all systems report the same state.
Combine with latching logic to hold a condition once equality is reached (see Tips and Tricks).
Examples in plain language:
Inputs: 5, 5, 5 β Output: TRUE
Inputs: 5, 5, 4 β Output: FALSE
π‘ Tips and Tricks
For human-entered or floating values, exact equality may be fragile due to rounding. To compare with a tolerance, use
AbsoluteandSmaller: compute the absolute difference between values and check if it is smaller than a tolerance number.Use
Number Inputto provide reference or setpoint values for easy testing.Combine multiple equality checks with
AndorOrto build richer logic conditions.Use
All Trueto verify a list of boolean results (for example, severalEqualsblocks feeding into it).If you want to hold a TRUE result until reset, pair the block with
Set - ResetorData Memoryto implement latching behavior.Use
Logic Inputas a manual trigger to enable or disable comparisons during testing or maintenance.
Suggested blocks to combine with Equals:
Number Input, Logic Input, And, Or, Not, Greater, Smaller, Absolute, Round, All True, Set - Reset, Data Memory, Scope.
π οΈ Troubleshooting
Unexpected FALSE results with floating numbers: try rounding values with
Roundor perform a tolerance-based comparison usingAbsolute+Smaller.Missing input: ensure every numeric socket you intend to compare is connected or populated with a
Number Input; an unconnected value can make the comparison invalid.Multiple inputs behave unexpectedly: verify all connected inputs represent the same numeric type/scale (e.g., all in the same units).
Last updated
Was this helpful?