Visit ComfyUI Online for ready-to-use ComfyUI environment
The node splits a delimited string into a trimmed, structured list for efficient string processing.
The StringOutputList node is designed to process a string of values separated by a specified delimiter and convert them into a structured list format. This node is particularly useful when you have a single string containing multiple values that need to be individually accessed or manipulated. By specifying a separator, the node splits the string into distinct elements, trims any extraneous whitespace, and organizes these elements into a list. This functionality is beneficial for tasks that require handling and processing multiple string values efficiently, such as data parsing or preparation for further computational operations. The node's ability to handle a variety of separators and its straightforward approach to list creation make it a versatile tool in any workflow that involves string manipulation.
The separator parameter is a string that defines the character or sequence of characters used to split the input string into individual elements. This parameter is crucial as it determines how the input string is divided into separate values. For example, if your input string is a comma-separated list, you would set the separator to a comma (,). The separator can be any character or sequence that appears in the input string, and it is unescaped to handle special characters. There are no explicit minimum or maximum values for this parameter, but it should match the delimiter used in your input string for accurate processing.
The values parameter is a list of strings that represents the input data to be processed by the node. This parameter contains the string that will be split into individual elements based on the specified separator. The input string should be formatted in such a way that the separator can effectively divide it into meaningful components. The node will trim any leading or trailing whitespace from each element after splitting, ensuring clean and precise output. There are no specific constraints on the length or content of the input string, but it should be compatible with the chosen separator for optimal results.
The value output parameter is a list of strings that results from splitting the input string using the specified separator. Each element in this list corresponds to a distinct value extracted from the input string, with any leading or trailing whitespace removed. This output is essential for accessing and manipulating individual components of the original string, enabling further processing or analysis.
The index output parameter is a range object that represents the indices of the elements in the value list. This output is useful for iterating over the list or referencing specific elements by their position. It provides a straightforward way to access each element's position within the list, facilitating operations that require index-based manipulation.
The count output parameter is an integer that indicates the total number of elements in the value list. This output provides a quick reference to the size of the list, which can be useful for validation, iteration, or conditional operations that depend on the number of elements processed.
The inspect_combo output parameter is currently set to None and does not provide additional functionality in the current implementation. It is included as part of the node's output structure but does not impact the node's primary operations or results.
separator parameter accurately matches the delimiter used in your input string to avoid incorrect splitting of values.count output to verify the number of elements processed, which can help in debugging or validating the input data.value output contains only the desired elements.separator does not match the delimiter used in the input string, the node may not split the string correctly, resulting in unexpected output.separator parameter is set to the correct character or sequence used to separate values.value list, as there are no elements to process.separator includes special characters that are not properly escaped, the node may not interpret them correctly.separator to ensure accurate processing.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.