User Tools

Site Tools


This is an old revision of the document!


If Else

Brickyard : Functions > Utility > control

This brick had several issues prior to 4.0.3.35 and has been completely rebuilt. It is highly recommended that you revisit any shaders built using this brick prior to this version.

This is a simple control brick, though it can be made more complex by adding multiple inputs. Use the Option Menu to add as many additional input parameters to the brick as you need. A Compare brick is often connected to “if” input parameters.

Snapshot

Parameters

Outputs

  • Conditional Result : Variable - Description…

Inputs

Settings

  • Type : Sets the type of the Conditional Result output parameter, as well as the Value and Else input parameters to one of float, color, point, vector or normal.

Examples

  • A complex If Else brick with multiple tests is used in the Glass Shader Mixer Preset.