Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates conditional switching between multiple inputs in node-based workflows based on availability or non-null status.
The EGRYDZQHNode, also known as "Any Switch," is designed to facilitate conditional switching between multiple inputs within a node-based workflow. This node is particularly useful when you need to dynamically select an input based on its availability or non-null status. By evaluating the provided inputs, the node ensures that the first non-null input is passed through as the output, making it an essential tool for managing conditional logic in your AI art projects. This functionality helps streamline workflows by automatically handling input selection, reducing the need for manual intervention and ensuring that the most relevant data is used in subsequent processes.
This is an optional input parameter that can accept any type of data. The node will check if this input is non-null and, if so, will pass it through as the output. This parameter is useful for providing a primary input option that the node will prioritize when available.
This is another optional input parameter that can accept any type of data. Similar to input1
, the node will check if this input is non-null and will pass it through as the output if input1
is null or not provided. This parameter serves as a secondary input option, ensuring that there is a fallback input available if the primary one is not usable.
The output parameter will contain the first non-null input value among the provided inputs (input1
and input2
). If both inputs are null, the output will be null. This output is crucial for ensuring that the most relevant and available data is passed on to subsequent nodes in the workflow, maintaining the integrity and continuity of the data processing pipeline.
input1
and input2
are null, resulting in a null output.© Copyright 2024 RunComfy. All Rights Reserved.