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