Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates conditional switching of latent data for AI art projects, enhancing workflow control and adaptability.
The Switch latent [Crystools] node is designed to facilitate conditional operations on latent data within your AI art projects. This node allows you to dynamically switch between two different latent inputs based on a boolean condition, providing a flexible and efficient way to control the flow of data in your workflows. By leveraging this node, you can create more complex and responsive AI art generation processes, ensuring that the appropriate latent data is used under specific conditions. This capability is particularly useful for scenarios where you need to toggle between different states or configurations based on certain criteria, enhancing the adaptability and functionality of your AI art projects.
This parameter accepts a latent input that will be used when the boolean condition is true. The latent input represents the encoded data that can be manipulated or processed further in your AI art workflow. This parameter ensures that the correct latent data is utilized when the specified condition is met.
This parameter accepts a latent input that will be used when the boolean condition is false. Similar to the on_true
parameter, this latent input represents the encoded data for scenarios where the condition is not met. This allows for an alternative data path, providing flexibility in your workflow.
This parameter is a boolean value that determines which latent input to use. When set to true, the node will output the latent data provided in the on_true
parameter. Conversely, when set to false, the node will output the latent data provided in the on_false
parameter. The default value for this parameter is true, ensuring that the on_true
latent data is used unless specified otherwise.
This output parameter provides the selected latent data based on the boolean condition. If the boolean condition is true, the output will be the latent data from the on_true
parameter. If the condition is false, the output will be the latent data from the on_false
parameter. This output is crucial for continuing the data flow in your AI art workflow, ensuring that the appropriate latent data is used for subsequent operations.
boolean
parameter to dynamically control which latent data is used in your workflow, allowing for more responsive and adaptable AI art generation.on_true
and on_false
are properly encoded and compatible with the rest of your workflow to avoid data inconsistencies.on_true
or on_false
is not properly encoded or is incompatible with the workflow.on_true
and on_false
are of different shapes or formats, causing issues in the workflow.on_true
and on_false
are of the same shape and format to ensure compatibility and smooth data flow in your workflow.© Copyright 2024 RunComfy. All Rights Reserved.