Visit ComfyUI Online for ready-to-use ComfyUI environment
Evaluate conditions between variables to control AI art workflow logic with dynamic comparisons for decision-making in projects.
The Zuellni Text Condition node is designed to evaluate conditions between two variables and return specific outputs based on the result of the evaluation. This node is particularly useful for creating conditional logic within your AI art workflows, allowing you to control the flow of operations based on dynamic comparisons. By leveraging this node, you can introduce sophisticated decision-making capabilities into your projects, enhancing the flexibility and responsiveness of your AI-generated art. The node supports a variety of comparison operations, including equality, inequality, and string-specific checks, making it a versatile tool for a wide range of applications.
This parameter represents the first variable to be compared. It accepts a string input, which can be converted to a float if necessary. The value of var_1
is crucial as it serves as one of the operands in the comparison operation. The default value is an empty string.
This parameter specifies the type of comparison to be performed between var_1
and var_2
. The available options are ==
, !=
, <
, <=
, >
, >=
, contains
, starts with
, and ends with
. The default condition is ==
. This parameter determines the logic that will be applied to evaluate the relationship between the two variables.
This parameter represents the second variable to be compared against var_1
. Similar to var_1
, it accepts a string input that can be converted to a float if necessary. The value of var_2
is essential as it serves as the other operand in the comparison operation. The default value is an empty string.
This boolean parameter indicates whether the process should be interrupted if the condition is not met. The available options are True
and False
, with the default being False
. If set to True
, an InterruptProcessingException
will be raised when the condition is not satisfied, halting further execution.
This optional parameter allows you to pass image data that will be returned if the condition is met. It is useful for workflows that involve image processing based on conditional logic.
This optional parameter allows you to pass latent data that will be returned if the condition is met. It is useful for workflows that involve latent space manipulations based on conditional logic.
This optional parameter allows you to pass mask data that will be returned if the condition is met. It is useful for workflows that involve mask operations based on conditional logic.
This output parameter returns the image data passed through the images
input parameter if the condition is met. If the condition is not met, it returns None
.
This output parameter returns the latent data passed through the latents
input parameter if the condition is met. If the condition is not met, it returns None
.
This output parameter returns the mask data passed through the masks
input parameter if the condition is met. If the condition is not met, it returns None
.
This output parameter returns a string indicating the result of the condition evaluation. It returns "true"
if the condition is met and "false"
if it is not. This output is useful for further decision-making processes in your workflow.
var_1
and var_2
are in compatible formats for the chosen condition to avoid unexpected results.interrupt
parameter to control the flow of your workflow, especially in complex pipelines where certain conditions must be met to proceed.images
, latents
, and masks
parameters to pass through relevant data only when specific conditions are satisfied, optimizing your workflow's efficiency.condition
parameter is set to one of the following: ==
, !=
, <
, <=
, >
, >=
, contains
, starts with
, ends with
.contains
, starts with
, or ends with
condition was used with numeric values.var_1
and var_2
are strings when using string-specific conditions like contains
, starts with
, or ends with
.interrupt
parameter is set to True
, and the condition was not met, causing the process to halt.interrupt
to False
if interruption is not desired.© Copyright 2024 RunComfy. All Rights Reserved.