Inheritance: EventDispatcher → Node →
Represents a logical if/else statement. Can be used as an alternative to the If()/Else() syntax.
The corresponding TSL select() looks like so:
The select() method is called in a chaining fashion on a condition. The parameter nodes of select() determine the outcome of the entire statement.
velocity = position.greaterThanEqual( limit ).select( velocity.negate(), velocity );
Constructs a new conditional node.
condNode
The node that defines the condition.
ifNode
The node that is evaluate when the condition ends up true.
elseNode
The node that is evaluate when the condition ends up false.
Default is null.
The node that defines the condition.
The node that is evaluate when the condition ends up false.
Default is null.
The node that is evaluate when the condition ends up true.
This method is overwritten since the node type is inferred from the if/else nodes.
builder
The current node builder.
Overrides: Node#getNodeType
Returns: The node type.