Skip to main content
The If/Else Switch node selects between two possible inputs based on a boolean condition. When switch is enabled (true), it passes the on_true input through to the output; when disabled (false), it passes on_false. The inputs are lazy, so only the selected branch is evaluated and the other input does not need to be connected.

Inputs

Note on Input Requirements: The on_false and on_true inputs are conditionally requested. The node asks for on_true only when switch is true, and asks for on_false only when switch is false. Both inputs must be of the same data type, and that type must match the output data type. If the selected input is not connected, the node outputs no value.

Outputs

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 42c442efeda0197d950702c52647233dee1a30216fb07e1ce4bc844784a6c5f2