Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile tool for string manipulation in AI workflows, simplifying complex operations for efficient text processing.
The StringOperation
node is a versatile tool designed to perform a wide range of operations on strings or lists of strings. This node is particularly useful for AI artists who need to manipulate text data within their workflows. Whether you need to compare, concatenate, count, or transform strings, this node provides a comprehensive set of operations to meet your needs. It simplifies complex string manipulations, making it easier to handle text data without requiring extensive programming knowledge. By leveraging this node, you can streamline your text processing tasks, ensuring efficient and accurate results.
This parameter accepts the string or list of strings that you want to process. It is the primary data on which the selected operation will be performed. The input can be a single string or a list of strings, depending on the operation you choose.
This parameter specifies the operation to perform on the input. Available options include COMPARE
, CONCATENATE
, COUNT
, ENDS_WITH
, EXTRACT_BETWEEN
, FIND
, GENERATE
, GET_LINE
, IS_ALPHA
, IS_NUMERIC
, JOIN
, LENGTH
, LOWERCASE
, PROPERCASE
, REPLACE
, RANDOM_INPUT
, RANDOM_ELEMENT
, REVERSE
, SLICE
, SPLIT
, SPLIT_LINES
, STARTS_WITH
, STRIP
, TO_LIST
, TO_STRING
, TRIM_SPACES
, and UPPERCASE
. Each operation performs a specific function on the input, such as comparing strings, concatenating them, or converting their case.
This boolean parameter determines whether to evaluate the input from the start or the end of the expression. It is useful for operations that can be performed in reverse order, such as REVERSE
or SLICE
. The default value is False
.
This boolean parameter specifies whether to ignore case sensitivity for operations that support it. When set to True
, the operation will treat uppercase and lowercase characters as equivalent. The default value is False
.
This optional parameter can be of any type and is used as an auxiliary input for certain operations. For example, it can specify the characters to strip in the STRIP
operation or the substring to find in the FIND
operation. The exact usage depends on the selected operation.
This optional parameter can be of any type and is used as an additional auxiliary input for certain operations. For example, it can specify the replacement string in the REPLACE
operation. The exact usage depends on the selected operation.
This optional parameter can be of any type and is used as a third auxiliary input for certain operations. For example, it can specify the maximum number of replacements in the REPLACE
operation. The exact usage depends on the selected operation.
This parameter provides the processed input value after the chosen operation has been applied. The output can be a modified string or list of strings, depending on the operation performed. For example, if the UPPERCASE
operation is selected, the output will be the input string converted to uppercase.
This parameter indicates the result of the chosen operation. It can be a boolean value, a count, or another relevant result based on the operation. For example, in the COMPARE
operation, the result will be True
or False
depending on whether the comparison was successful.
case_insensitive
parameter to handle text data without worrying about case differences, especially for operations like FIND
or COMPARE
.start_from_end
parameter for operations that can benefit from reverse evaluation, such as REVERSE
or SLICE
.aux1
, aux2
, and aux3
parameters to provide additional context or data required for specific operations, ensuring more precise and tailored text manipulations.GET_LINE
operation is selected, but the aux1
parameter is not a positive number.aux1
parameter is set to a positive number when using the GET_LINE
operation.new only
, but the file already exists.append
or overwrite
, or ensure that the file does not already exist when using the new only
mode.© Copyright 2024 RunComfy. All Rights Reserved.