Visit ComfyUI Online for ready-to-use ComfyUI environment
Determines presence of specific substring in text for analysis, validation, and filtering, with case-insensitive search option.
The Text Contains node is designed to help you determine if a specific substring exists within a given text. This node is particularly useful for tasks that involve text analysis, validation, or filtering, where you need to check for the presence of certain keywords or phrases. By leveraging this node, you can streamline your workflow by automating the process of text searching, making it easier to handle large volumes of text data efficiently. The node offers an option to perform case-insensitive searches, ensuring flexibility and accuracy in various scenarios.
This parameter represents the main text in which you want to search for a substring. It is a string input where you can provide any text content. The default value is an empty string (''
). The text parameter is crucial as it serves as the primary source for the search operation.
This parameter is the substring you are looking to find within the main text. It is also a string input, and you can specify any sequence of characters you want to search for. The default value is an empty string (''
). The sub_text parameter is essential because it defines the specific content you are trying to locate in the main text.
This optional parameter determines whether the search should be case-insensitive. It is a boolean input, with the default value set to True
. When enabled, the node will ignore case differences between the text and sub_text, making the search more flexible. If set to False
, the search will be case-sensitive, meaning it will only find exact matches with the same letter casing.
The output of this node is a boolean value that indicates whether the sub_text was found within the main text. If the substring is present, the output will be True
; otherwise, it will be False
. This output is crucial for decision-making processes in your workflow, allowing you to branch or filter actions based on the presence of specific text.
True
or False
.© Copyright 2024 RunComfy. All Rights Reserved.