This component is obsolete and its use in filters is not recommended. Use the recent version of the component.
The If component performs the channel-wise conditional operation on the colors supplied by the Source A and Source B inputs. All four channels, including the alpha channel, are processed this way. The component output is also generated channel-wise from the Source A and Source B inputs, based on the comparison result.
If is a map component, it can be located in the RGB Math category on the Components Bar. This component can output HDR colors. Like other RGB Math components, this component processes its inputs on a channel-wise basis, treating RGB channel values as signed floating-point numbers. For more information, see How Math Components Work.
Provides the first color to compare. This input can accept HDR colors.
Provides the second color to compare. This input can accept HDR colors.
Specifies the resulting color that goes to the output if the condition is met. This input can accept HDR colors.
Specifies the resulting color that goes to the output if the condition is not met. This input can accept HDR colors.
Specifies the conditional operation: less, more, equal or less, equal or more, equal, not equal.