Switch(スイッチ)ノード¶
The Switch node outputs one of two inputs depending on a condition.
When the inputs are regular values, only the input that is passed through the node is evaluated. This means the unused input is not computed.
When the inputs are フィールド, both inputs may be evaluated before the switch is applied. The switch then selects which result is used for each element. Because of this, the node should not be relied on to avoid evaluating expensive field inputs.
参考
The Menu Switch Node and Index Switch Node can be used to switch between an arbitrary amount of inputs.
入力¶
- Switch(スイッチ)
Determines which of the two inputs below will be passed through.
- False
Is passed through when the switch is set to false.
- True
Is passed through when the switch is set to true.
Properties(プロパティ)¶
- Type(タイプ)
Determines the type of the data that is handled by the node.
出力¶
- Output(出力)
One of the two inputs without any modifications.