GTE (>=)
GTE('Node1', 'Node2')
'Node1' >= 'Node2'
The GTE function checks whether the matching row on the first input is greater than or equal to the matching row in the second input; true (1) is returned, false (0) otherwise. An undefined value is treated as the number 0 in the comparison; it does not force the result to false. GTE(undefined, -100) returns 1, and two undefined cells compare as 0 >= 0, which is also 1.
Use this function when you need a 1/0 flag to mark where one input is greater than or equal to another.
Parameters
- Node1Node referenceRequired
- First input node, specified using the node name in single quotes (e.g.
'Profit'). - Node2Node referenceRequired
- Second input node.
Examples
Checking whether one input is greater than or equal to another
This example compares two input nodes row by row. The result returns 1 where the first input is greater than or equal to the second and 0 otherwise.
Input node: 'A'
| Year | Value |
|---|---|
| 2025 | 400 |
| 2026 | 700 |
| 2027 | 850 |
| 2028 | 500 |
Input node: 'B'
| Year | Value |
|---|---|
| 2025 | 350 |
| 2026 | 400 |
| 2027 | 850 |
| 2028 | 600 |
Formula: GTE('A', 'B')
| Year | GTE Result |
|---|---|
| 2025 | 1 |
| 2026 | 1 |
| 2027 | 1 |
| 2028 | 0 |