Visit ComfyUI Online for ready-to-use ComfyUI environment
Dynamically route data based on input index for flexible workflows and conditional processing.
The ImpactSwitch node is designed to dynamically select and route data based on a specified input index. This node is particularly useful in scenarios where you need to switch between multiple data inputs and direct the flow of data accordingly. By leveraging the ImpactSwitch, you can create more flexible and adaptive workflows, allowing for conditional data processing and efficient management of multiple data streams. The node ensures that the selected data is accurately routed, making it an essential tool for complex data manipulation tasks.
The select
parameter determines which input data stream to route through the node. It accepts an integer value that corresponds to the index of the input data stream you wish to select. The valid range for this parameter is from 1 to 99999, with a default value of 1. This parameter is crucial as it directly influences which data stream is processed and output by the node.
These parameters represent the various data streams that can be selected and routed by the node. Each input corresponds to a potential data stream that can be chosen based on the select
parameter. The number of inputs can vary, and each input can be of any data type, allowing for versatile data routing capabilities.
The output
parameter is the data stream that has been selected and routed based on the select
parameter. This output will be the data from the input stream that corresponds to the index specified by the select
parameter. The output is crucial as it represents the final data that will be used in subsequent nodes or processes.
The selected_label
parameter provides the label of the selected input data stream, if available. This can be useful for debugging or for understanding which data stream has been routed through the node.
The selected_index
parameter returns the index of the selected input data stream. This is useful for verification and for ensuring that the correct data stream has been selected and routed.
select
parameter is set correctly to route the desired data stream. Double-check the index to avoid routing the wrong data.select
parameter is set to an index that does not correspond to any of the available input data streams.select
parameter is within the valid range and corresponds to an existing input data stream. Adjust the index as necessary to ensure it matches one of the available inputs.© Copyright 2024 RunComfy. All Rights Reserved.