Comparison Nodes
Compare values using operations like equal, greater than, less than, and logical operators.
Comparison Nodes
Compare values using operations like equal, greater than, less than, and logical operators.
This category contains 13 nodes.
Nodes
Clamp
Clamps value between min and max
Inputs: Value, min, max.
| Name | Type | Range | Default |
|---|---|---|---|
| Value | Number | any | 0 |
| Min | Number | any | 0 |
| Max | Number | any | 1 |
Outputs: Value constrained to [min, max].
| Name | Type | Range |
|---|---|---|
| Number | Number | bool |
Clamp Vector
Clamps each component
Inputs: Vector, min vector, max vector.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector | Vector | vec | [0, 0, 0] |
| Low | Vector | vec | [0, 0, 0] |
| High | Vector | vec | [1, 1, 1] |
Outputs: Vector with clamped components.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Gate
Binary on/off based on threshold
Inputs: Value (signal), Threshold (cutoff).
| Name | Type | Range | Default |
|---|---|---|---|
| Value | Number | any | 0 |
| Threshold | Number | any | 0.5 |
Outputs: 0 if value < threshold, 1 if value >= threshold.
| Name | Type | Range |
|---|---|---|
| Result | Number | any |
Is Equal
Equality comparison
Inputs: A and B.
| Name | Type | Range | Default |
|---|---|---|---|
| A | Number | any | 0 |
| B | Number | any | 0 |
Outputs: Boolean true if A == B.
| Name | Type | Range |
|---|---|---|
| Result | Boolean | bool |
Is Greater
Greater-than comparison
Inputs: A and B.
| Name | Type | Range | Default |
|---|---|---|---|
| A | Number | any | 0 |
| B | Number | any | 0 |
| Include Equal | Boolean | bool | false |
Outputs: Boolean true if A > B.
| Name | Type | Range |
|---|---|---|
| Result | Boolean | bool |
Is Smaller
Less-than comparison
Inputs: A and B.
| Name | Type | Range | Default |
|---|---|---|---|
| A | Number | any | 0 |
| B | Number | any | 0 |
| Include Equal | Boolean | bool | false |
Outputs: Boolean true if A < B.
| Name | Type | Range |
|---|---|---|
| Result | Boolean | bool |
Max
Maximum of two numbers
Inputs: A and B.
| Name | Type | Range | Default |
|---|---|---|---|
| A | Number | any | 0 |
| B | Number | any | 0 |
Outputs: The larger value.
| Name | Type | Range |
|---|---|---|
| Number | Number | bool |
Maximum Vector
Component-wise maximum
Inputs: Two 3D vectors.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector 1 | Vector | vec | [0, 0, 0] |
| Vector 2 | Vector | vec | [1, 1, 1] |
Outputs: Vector with maximum of each component pair.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Min
Minimum of two numbers
Inputs: A and B.
| Name | Type | Range | Default |
|---|---|---|---|
| A | Number | any | 0 |
| B | Number | any | 0 |
Outputs: The smaller value.
| Name | Type | Range |
|---|---|---|
| Number | Number | bool |
Minimum Vector
Component-wise minimum
Inputs: Two 3D vectors.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector 1 | Vector | vec | [0, 0, 0] |
| Vector 2 | Vector | vec | [1, 1, 1] |
Outputs: Vector with minimum of each component pair.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Step
Step function
Inputs: Edge and value.
| Name | Type | Range | Default |
|---|---|---|---|
| Edge | Number | any | 0 |
| X | Number | any | 0 |
Outputs: 0 if value < edge, 1 otherwise.
| Name | Type | Range |
|---|---|---|
| Number | Number | bool |
Step Vector
Step function for each component
Inputs: Edge vector, value vector.
| Name | Type | Range | Default |
|---|---|---|---|
| Edge | Vector | vec | [0, 0, 0] |
| X | Vector | vec | [0, 0, 0] |
Outputs: 0 if value < edge, 1 otherwise for each component.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Threshold
Pass-through above threshold, zero below
Inputs: Value (signal), Threshold (cutoff).
| Name | Type | Range | Default |
|---|---|---|---|
| Value | Number | any | 0 |
| Threshold | Number | any | 0.5 |
Outputs: 0 if value < threshold, otherwise the input value.
| Name | Type | Range |
|---|---|---|
| Result | Number | any |