Documentation / Node reference / code nodes

code/TwoWaySwitch

Outputs one of two values, picked by a condition.

Flow

Outputs ifTrue when condition is true, and ifFalse otherwise.

Parameters

Name Type What it does
condition Bool Picks ifTrue when on, ifFalse when off.
ifTrue_Float Float Output when condition is true.
ifFalse_Float Float Output when condition is false.
ifTrue_SInt32 SInt32 Output when condition is true.
ifFalse_SInt32 SInt32 Output when condition is false.
ifTrue_UInt32 UInt32 Output when condition is true.
ifFalse_UInt32 UInt32 Output when condition is false.
ifTrue_Vector2 Vector2 Output when condition is true.
ifFalse_Vector2 Vector2 Output when condition is false.
ifTrue_Vector3 Vector3 Output when condition is true.
ifFalse_Vector3 Vector3 Output when condition is false.
ifTrue_Vector4 Vector4 Output when condition is true.
ifFalse_Vector4 Vector4 Output when condition is false.
ifTrue_Vector2UInt Vector2UInt Output when condition is true.
ifFalse_Vector2UInt Vector2UInt Output when condition is false.
ifTrue_Vector3UInt Vector3UInt Output when condition is true.
ifFalse_Vector3UInt Vector3UInt Output when condition is false.

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.