A set of nodes for ComfyUI that can composite layer and mask to achieve Photoshop like functionality.
The LayerUtility: StringCondition node is part of the ComfyUI platform, designed to help users evaluate string conditions within their workflows. It provides functionality to check specific conditions between a text and a substring, enabling more complex string manipulation and decision-making processes within the workflow.
The StringCondition node checks if a particular condition holds between a given text and a specified substring. It facilitates operations like verifying if a substring is included in a text, is excluded, or if the text is equal to the substring. The result of this evaluation is provided as a boolean output, indicating whether the condition is met or not, as well as a string representation of the result.
The LayerUtility: StringCondition node accepts the following inputs:
text:
condition:
include
, exclude
, equal
include
: Checks if the substring is present in the text.exclude
: Checks if the substring is not present in the text.equal
: Checks if the text is exactly equal to the substring.sub_string:
The StringCondition node provides the following outputs:
output:
True
or False
) indicating whether the specified condition was met.string:
The LayerUtility: StringCondition node can be incorporated into ComfyUI workflows to add logic related to string handling and decision-making. For example, this node can be used to:
In practice, this node would typically be combined with other nodes to form more complex flows, such as branching logic leading to different paths or processing steps based on the result of the string condition check.
include
, exclude
, equal
), making it straightforward and easy to use for common string checks.By incorporating the LayerUtility: StringCondition node into your ComfyUI workflows, you can enhance the decision-making capabilities of your interfaces, allowing for more dynamic and responsive interactions based on string content evaluations.