Capítulo 398 de 859
Represents a logical if/else statement. Can be used as an alternative to the If()/Else() syntax.
The select() method is called in a chaining fashion on a condition. The parameter nodes of select() determine the outcome of the entire statement.
false.true.velocity = position.greaterThanEqual( limit ).select( velocity.negate(), velocity );
Constructor
| Signature |
|---|
new ConditionalNode( condNode : Node, ifNode : Node, elseNode : Node ) |
Properties
| Property | Description |
|---|---|
.condNode : Node | The node that defines the condition. |
.elseNode : Node | The node that is evaluate when the condition ends up false. |
.ifNode : Node | The node that is evaluate when the condition ends up true. |
Methods
| Method | Description |
|---|---|
.generateNodeType( builder : NodeBuilder ) : string | This method is overwritten since the node type is inferred from the if/else nodes. |