Houdini 20.5 Nodes APEX nodes

TwoWaySwitch<T>

Switches between two inputs based on a Bool value.

On this page
Since 20.0

Returns b if index is True. Otherwise returns a.

Inputs

a: ApexChannel, ApexChannelCollection, ApexNodeID, ApexPortID, Bool, Float, Geometry, Int, Matrix3, Matrix4, String, Vector2, Vector3, Vector4

The first value.

b: ApexChannel, ApexChannelCollection, ApexNodeID, ApexPortID, Bool, Float, Geometry, Int, Matrix3, Matrix4, String, Vector2, Vector3, Vector4

The second value.

index: Bool

The value that controls the switch.

Outputs

out: ApexChannel, ApexChannelCollection, ApexNodeID, ApexPortID, Bool, Float, Geometry, Int, Matrix3, Matrix4, String, Vector2, Vector3, Vector4

Returns b if index is True. Otherwise returns a.

See also

APEX nodes