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

If

Use If to pass a value based on condition. If is in the Control category.

Input

NameData typeDescription
StarttriggerTrigger if else node to execute
ConditionbooleanA boolean value which determines the result

Output

NameData typeDescription
TruetriggerThe value to pass if condition is true
FalsetriggerThe value to pass if condition is false

Example

In this example, we get the sphere’s position in realtime. If the x-axis is greater than 0, then the sphere will turn red. If the x-axis is less than 0, it will turn green.