Greater
This function block compares numeric values and outputs a boolean result indicating whether the first value is greater than the remaining ones. Use it to drive decisions, alarms or conditional flow based on numeric thresholds.
📥 Inputs
Number The reference number (first value) that will be compared against the following inputs.
Number One or more numbers to compare with the reference value. Multiple inputs can be provided to check the reference value against several values at once.
(These are numeric input sockets.)
📤 Outputs
Check Boolean result. True when the first input is greater than all other provided inputs; otherwise False.
(The output is a boolean socket.)
🕹️ Controls
No Controls This block has no additional UI widgets. Behavior is controlled solely by the values supplied to its input sockets.
🎯 Features
Compares a single reference number to one or more other numbers in a single evaluation step.
Supports multiple comparison inputs—returns True only if the reference is greater than every other value provided.
Simple boolean output that can be routed into logic flow or trigger blocks.
Lightweight and suitable for real-time checks (thresholds, gating, etc.).
⚙️ Running mechanism
When evaluated, the block reads the current numeric inputs. If only two values are connected it compares them directly. If more than two values are present it ensures the first value is greater than each of the remaining values. The resulting boolean is emitted on the Check output and can be used immediately by downstream blocks.
💡 Tips and Tricks
Combine with
Number Inputto set a manual threshold and compare live sensor or computed values.Use together with
AndorOrto combine multiple comparisons into a single decision chain.Use
Notto invert the result when you need the opposite condition.Feed the output into
Counterto count how many times the condition becomes true, or intoScopeto visualize when the comparison is active.Use
MaximumorMinimumto produce comparative values first, then check them with this block.For flows that require all comparisons to be true across a list of values, pair with
All Trueto aggregate several boolean checks.
(hints above reference other available function blocks to help compose larger flows.)
🛠️ Troubleshooting
If the output is always False, ensure all inputs provide valid numeric values. Use
Is NoneorData Type Converterupstream to validate or coerce inputs.If comparisons behave unexpectedly for floating values, consider normalizing or rounding inputs (use
Round) before comparing.If you expect multiple comparisons but the result appears based on only two values, verify that additional numeric sockets are actually connected and providing data.
Last updated
Was this helpful?