Skip to content

The "If/Else" Node ​

Switches between node tree branches depending on a condition.

IMPORTANT

Note that when using this node all three branches (left of the value and condition, right of the if, and right of the else) must be completely separate and not interconnected. The editor will mark connections that violate this as invalid (marked red).

If/Else

  • If
  • Else
  • Condition
  • Value

Inputs ​

  • Condition − What branch to pick. Executes the nodes right of If when true or truthy, otherwise the nodes
    right of Else.
  • Value − The value to pass onto the selected branch.

Outputs ​

  • If − The given Value. Connect nodes here to execute when Condition is true or truthy.
  • Else − The given Value. Connect nodes here to execute when Condition is false or falsy.