The condition node is a branching utility. It does one thing if a logical expression is true and something else if it is false.
It compares the value in A with the value in B to find out whether the value in A is greater, smaller, equal to, less than, less than or equal to, greater than or equal to, or not equal to the value in B, and produces a result based on the conditions you set.
You can incorporate the Condition utility in shader networks capable of acting one way in one set of circumstances and another way in a different set of circumstances. For example, you can create a double-sided shaded surface (see Create double-sided shaded surfaces).
As shown in the following examples, the node requires one logical operator (Operation) and two choice values (First Term and Second Term):
In this example, if the value in A is not equal to the value in B, Color If True is chosen in OutColor. If the value in A is equal to the value in B, and Color If False is chosen in OutColor.
To create a condition utility node
The following shows some examples of the Condition utility in use:
To map the Condition utility to four textures
This texture represents the Second Term’s texture coverage.
This texture represents the pattern of the coverage.
This texture represents the surface color.
This texture represents the color of the overlying texture.