Skip to main content

ternary if

Applies a value based on a true/false condition

Holly Conrad Smith avatar
Written by Holly Conrad Smith
Updated over a week ago

Inputs

Name

Abbreviation

Type

Access

Description

Condition

C

Boolean

Item

The condition to match

Value A

a

Any

Item

The item to choose from if the condition is true

Value B

b

Any

Item

The item to choose from if the condition is false

Outputs

Name

Abbreviation

Type

Access

Description

Result

R

Any

Item

The chosen item

How-to

  1. Feed in a Boolean condition (true/false)

    This can be a Boolean node, or the result of a node such as equals, greater than, or an Input Parameter with the Boolean type.

    You can also “hard code’ the boolean condition with the toggle on the node itself. This will make the result always true or always false if you use this method.

  2. Define the “true” condition

    Connect to the A input

  3. Define the “false” condition

    Connect to the B input

  4. The output value will change between A or B based on meeting the boolean conditional.

Example: Change the color of a geometry based on its area

Did this answer your question?