Skip to main content

Logic Select

logic select

Use Logic Select to pass a value based on a condition. Logic Select is in the Logic category.

Input

NameData TypeDescription
ConditionBooleanA boolean value that determines the result.
ThenIntThe value to pass if the condition is true.
ElseIntThe value to pass if the condition is false.

Output

NameData TypeDescription
ValueBooleanA boolean signal of the comparison result.

Example

logic select example

This example sets the R and G colors for the PBR material to 0.4 if the mouth opens an even number of times. If the mouth opens an odd number of times, it sets the R and G colors for the PBR material to 0.9.

logic select node