Greater
Tests whether one number is greater than another.
Node id logic/greater
The Greater node outputs true if a is greater than b (a > b), and false
otherwise: 3 > 2 is true, 2 > 2 is false.
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| a | number | 0 | |
| b | number | 0 |
Outputs
| Name | Type | Notes |
|---|---|---|
| result | boolean |
Behaviour
- Defaults. Both inputs default to 0.
- NaN. If either input is NaN, the result is false.
- Precision. Numbers computed in different ways may differ by a tiny
amount (0.1 + 0.2 is 0.30000000000000004), which matters when
aandbare meant to be equal.
Related nodes
- Greater or Equals: also true when the numbers are equal.
- Lower: the reverse comparison.
- Max: the larger of the numbers itself.
- Not: inverts the result.