Greater or Equals
Tests whether one number is greater than or equal to another.
Node id logic/greater-or-equals
The Greater or Equals node outputs true if a is greater than or equal to b (a >= b), and false
otherwise: 3 >= 2 and 2 >= 2 are true, 1 >= 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: false when the numbers are equal.
- Lower or Equals: the reverse comparison.
- Not: inverts the result.