Comparison Nodes
Compare values with equality and greater or smaller tests, min and max, step, gate, and threshold.
This category contains 11 nodes.
Nodes
Gate
Switches between 0 and 1 with a hard cutoff. It outputs 1 when the value is above the threshold and 0 when it is below.
Inputs: The value to test and the threshold level.
| Name | Type | Range | Default |
|---|---|---|---|
| Value | Number | any | 0 |
| Threshold | Number | any | 0.5 |
Outputs: 1 if the value meets the threshold, 0 otherwise.
| Name | Type | Range |
|---|---|---|
| Result | Number | 0 or 1 |
Is Equal
Checks if two numbers are exactly equal.
Inputs: The two values to compare.
| Name | Type | Range | Default |
|---|---|---|---|
| A | Number | any | 0 |
| B | Number | any | 0 |
Outputs: True if equal, false otherwise.
| Name | Type | Range |
|---|---|---|
| Result | Boolean | bool |
Is Greater
Checks if A is larger than B. If Include Equal is on, it also returns true when they are equal.
Inputs: The two values and whether to include equal values.
| Name | Type | Range | Default |
|---|---|---|---|
| A | Number | any | 0 |
| B | Number | any | 0 |
| Include Equal | Boolean | bool | false |
Outputs: True if A is greater (or equal if enabled).
| Name | Type | Range |
|---|---|---|
| Result | Boolean | bool |
Is Smaller
Checks if A is smaller than B. If Include Equal is on, it also returns true when they are equal.
Inputs: The two values and whether to include equal values.
| Name | Type | Range | Default |
|---|---|---|---|
| A | Number | any | 0 |
| B | Number | any | 0 |
| Include Equal | Boolean | bool | false |
Outputs: True if A is smaller (or equal if enabled).
| Name | Type | Range |
|---|---|---|
| Result | Boolean | bool |
Max
Returns the larger of two numbers.
Inputs: Two numbers to compare.
| Name | Type | Range | Default |
|---|---|---|---|
| A | Number | any | 0 |
| B | Number | any | 0 |
Outputs: The larger value.
| Name | Type | Range |
|---|---|---|
| Number | Number | any |
Maximum Vector
Takes the larger value on each axis. It compares X with X, Y with Y, and Z with Z.
Inputs: Two 3D vectors.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector A | Vector | vec | [0, 0, 0] |
| Vector B | Vector | vec | [1, 1, 1] |
Outputs: A vector with the larger value on each axis.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Min
Returns the smaller of two numbers.
Inputs: Two numbers to compare.
| Name | Type | Range | Default |
|---|---|---|---|
| A | Number | any | 0 |
| B | Number | any | 0 |
Outputs: The smaller value.
| Name | Type | Range |
|---|---|---|
| Number | Number | any |
Minimum Vector
Takes the smaller value on each axis. It compares X with X, Y with Y, and Z with Z.
Inputs: Two 3D vectors.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector A | Vector | vec | [0, 0, 0] |
| Vector B | Vector | vec | [1, 1, 1] |
Outputs: A vector with the smaller value on each axis.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Step
Cuts hard at a threshold. It returns 0 below the edge and 1 at or above it.
Inputs: The threshold and the value to test.
| Name | Type | Range | Default |
|---|---|---|---|
| Edge | Number | any | 0 |
| X | Number | any | 0 |
Outputs: 0 or 1.
| Name | Type | Range |
|---|---|---|
| Number | Number | 0 or 1 |
Step Vector
Cuts hard on each axis. It returns 0 below the edge and 1 at or above it.
Inputs: The edge threshold and the value to test.
| Name | Type | Range | Default |
|---|---|---|---|
| Edge | Vector | vec | [0, 0, 0] |
| X | Vector | vec | [0, 0, 0] |
Outputs: A vector with 0 or 1 on each axis.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Threshold
Cuts off values below a threshold. Values above it pass through unchanged, and values below it become zero.
Inputs: The value to filter and the threshold.
| Name | Type | Range | Default |
|---|---|---|---|
| Value | Number | any | 0 |
| Threshold | Number | any | 0.5 |
Outputs: The original value if it is above the threshold, otherwise 0.
| Name | Type | Range |
|---|---|---|
| Result | Number | any |