Växla nod¶
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 Fält, 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.
Se även
Funktionerna Meny Switch Node och Index Switch Node kan användas för att växla mellan godtyckligt många ingångar.
Inmatningar¶
- Byt
Bestämmer vilken av de två ingångarna nedan som ska skickas igenom.
- Falskt
Passeras igenom när omkopplaren är inställd på false.
- Sant
Passeras igenom när omkopplaren är inställd på true.
Egenskaper¶
- Typ
Bestämmer vilken typ av data som ska hanteras av noden.
Utgångar¶
- Utdata
En av de två ingångarna utan några modifieringar.