Appearance
Relational Double
Compares double input a against a second double input b (or a constant threshold) and outputs an integer flag: 1 when the comparison holds, 0 otherwise. Operators: >, ≥, <, ≤, =, ≠. Equality is exact (bit-for-bit on doubles), so prefer ≥ / ≤ against a threshold when comparing computed values. The int output drives breaker commands, fault enables, logic gates and the Signal Switch directly. To compare int signals such as counter values or mode flags, use Relational Int.
Category: Digital Logic / Compare
Ports
| Port | Kind | Signal | Notes |
|---|---|---|---|
in_a | Control input | Real | |
in_b | Control input | Real | Shown when Compare to is Second input |
out | Control output | Integer |
Parameters
| Parameter | Type | Default | Units | Description | ID |
|---|---|---|---|---|---|
| Operator | Choice: > / ≥ / < / ≤ / = / ≠ | > | — | Comparison applied between a (left) and b (right), e.g. a > b. The output is 1 when it holds and 0 otherwise. | op |
| Compare to | Choice: Second input / Constant | Second input | — | Second input = compare against the `b` port. Constant = compare against the Threshold parameter (the `b` port is removed). | compare_to |
| Threshold | Number | 0 | — | Constant right-hand side `b` used when Compare to = Constant. | threshold |