Discrete AB Compare Base node
Access: Nodes > Math > Discrete AB Compare Base
Outputs ValueA if Input exactly equals Base on all channels, otherwise outputs ValueB. A strict whole-color equality switch — useful for palette-swap logic or testing whether a node output equals a specific constant.
| Input (Input, Base) | Output |
| Input = (1, 0, 0, 1), Base = (1, 0, 0, 1) | Outputs ValueA entirely (exact 4-channel match) |
| Input = (1, 0, 0, 1), Base = (1, 0, 0, 0.9999) | Outputs ValueB entirely (1-ULP floating-point difference in alpha switches output) |
| Default socket values (Input=0, Base=0) | Outputs ValueA (default match condition) |
Discrete AB Compare Base node inputs
|
Input |
Incoming vector to compare. |
| Base | Target reference vector. |
| ValueA | Output vector if matched. |
| ValueB | Output vector if unmatched. |
Discrete AB Compare Base node outputs
|
Output |
If Input and Base are identical on all four channels (exact match), the node passes ValueA through; otherwise it passes ValueB. |