Skip to main content

Class BranchNode

The Branch node serves as a simple way to create decision-based flow from a single true/false condition. Once executed, the Branch node looks at the incoming value of the attached Boolean, and outputs an execution pulse down the appropriate output.

public class BranchNode : BaseNode, ITraversableNode

Inheritance​

Implements​

ITraversableNode

Fields​

Condition​

Takes in a boolean value used to indicate which output will be triggered.

public bool Condition

Field Value​

bool

False​

This outputs an execution pulse if the incoming condition was false.

public Flow False

Field Value​

Flow

In​

Entry connection from the previous node in the graph.

public Flow In

Field Value​

Flow

True​

This outputs an execution pulse if the incoming condition was true.

public Flow True

Field Value​

Flow

Methods​

GetValue(NodePort)​

Returns a value based on the requested port output.

public override object GetValue(NodePort port)

Parameters​

NameTypeDescription
portNodePort

Returns​

object

Remarks​

This is a placeholder method used to suppress warnings. It always returns null.

NextNode()​

Determines the next connected node based on the evaluated Condition.

public Node NextNode()

Returns​

Node — The next Node connected to either the True or False port, or null if unconnected.