Skip to main content

If

if

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

Input​

NameData TypeDescription
EnterTriggerThe input execution that triggers this node.
ConditionBooleanA boolean value that determines which output execution to be taken. Select it to pass the true value only.

Output​

NameData TypeDescription
TrueTriggerExecute the next node if the condition is true.
FalseTriggerExecute the next node if the condition is false.

Example​

if example

This example gets 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.

if node
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies