Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates dynamic selection of text strings based on conditions or indices for AI art projects.
The Big Text Switch [Dream] node is designed to facilitate the selection of a specific text input from a set of predefined options. This node is particularly useful when you need to dynamically choose between multiple text strings based on certain conditions or indices. By leveraging this node, you can streamline workflows that require conditional text selection, ensuring that the appropriate string is picked and utilized in subsequent processes. The node's primary function is to evaluate the provided inputs and return the selected text based on the specified index, making it a versatile tool for managing text-based data in your AI art projects.
This parameter determines which text input to select from the available options. It is an integer value with a default of 0, and it can range from 0 to 9. The value of this parameter directly impacts which text string is chosen, as it corresponds to the index of the input options.
This parameter specifies the behavior when the selected input is missing or invalid. It can take one of two values: "previous" or "next". If set to "previous", the node will search backward for the nearest valid input; if set to "next", it will search forward. This ensures that a valid text string is always selected, even if the initially specified input is unavailable.
These parameters represent the possible text inputs that the node can select from. Each input is of type "STRING" and can be configured with a default value. The node will evaluate these inputs based on the select
parameter to determine which text string to return. If a default value is provided, it will be used as the initial value for the corresponding input.
This output parameter returns the text string that has been selected based on the select
parameter and the availability of the inputs. The returned value is of type "STRING" and represents the chosen text from the provided options. This output can then be used in subsequent nodes or processes that require the selected text.
on_missing
parameter to control the fallback mechanism when the selected input is not available, ensuring that your workflow remains robust.select
parameter to understand how the node behaves and to verify that the correct text string is being selected.select
parameter is set to a value outside the range of available inputs (0 to 9).select
parameter to a value within the valid range (0 to 9) to ensure a valid input is selected.on_missing
parameter is not set correctly.on_missing
parameter to either "previous" or "next" to enable the node to find the nearest valid input.© Copyright 2024 RunComfy. All Rights Reserved.