Skip to main content
TikTok Effect House Platform Logo
Download
Log in
Logic

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 which determines the result
ThenIntThe value to pass if the condition is true
ElseIntThe value to pass if the condition is false

Output

NameData typeDescription
ValueIntA boolean value of comparison result

Example

In this example, we set 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, set the R and G colors for the PBR material to 0.9