Skip to main content
The Switch node selects between two possible inputs based on a boolean condition. It outputs the on_true input when the switch is enabled, and the on_false input when the switch is disabled. Only the selected branch is evaluated, so the other input is not required. This allows you to create conditional logic and choose different data paths in your workflow.

Inputs

Note on Input Requirements: The on_false and on_true inputs are conditionally required. The node will request the on_true input only when the switch is true, and the on_false input only when the switch is false. Both inputs must be of the same data type and must match the output data type.

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): d0adda02e7f997f27182cb26e11e934660ae5bd80f3091bed2fed7c981632ce5