ComfyUI > Nodes > Basic data handling > create SET from STRINGs

ComfyUI Node: create SET from STRINGs

Class Name

Basic data handling: SetCreateFromString

Category
Basic/SET
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

Install this extension via the ComfyUI Manager by searching for Basic data handling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Basic data handling in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

create SET from STRINGs Description

The `SetCreateFromString` node converts a list of strings into a set, ensuring unique elements.

create SET from STRINGs:

The SetCreateFromString node is designed to facilitate the creation of a set from a collection of string items. This node is particularly useful when you need to manage a group of unique string elements, as it automatically handles duplicates by ensuring each element in the set is distinct. The node dynamically adjusts to the number of inputs provided, making it flexible and adaptable to various data sizes. By converting a list of strings into a set, it provides a powerful way to eliminate duplicates and organize data efficiently, which can be especially beneficial in scenarios where unique identifiers or distinct categories are required.

create SET from STRINGs Input Parameters:

item_0

This parameter represents the first string item to be included in the set. It is part of a dynamic input system that allows you to add multiple string items by extending the input list. The function of this parameter is to serve as the initial element in the set creation process. There are no explicit minimum or maximum values, as the parameter is a string, but it should be noted that duplicate strings will be automatically filtered out in the resulting set. The default value is an empty string, which means if no input is provided, it will not affect the set.

create SET from STRINGs Output Parameters:

SET

The output of this node is a SET, which is a collection of unique string elements derived from the input parameters. The importance of this output lies in its ability to store only distinct values, automatically removing any duplicates from the input list. This makes it an ideal choice for tasks that require a unique set of identifiers or categories. The resulting set can be used in various operations where uniqueness is a key requirement, such as filtering, categorization, or ensuring data integrity.

create SET from STRINGs Usage Tips:

  • Use this node when you need to ensure that a collection of string items contains only unique elements, such as when managing tags or categories.
  • Take advantage of the dynamic input feature to easily adjust the number of string items you want to include in the set, without worrying about duplicates.

create SET from STRINGs Common Errors and Solutions:

Empty Input Error

  • Explanation: This error occurs when no input strings are provided to the node, resulting in an empty set.
  • Solution: Ensure that at least one string item is provided as input to create a meaningful set.

Duplicate Strings Ignored

  • Explanation: If duplicate strings are provided as input, they will be ignored in the resulting set, which might be unexpected if duplicates are intended.
  • Solution: Be aware that sets inherently remove duplicates. If duplicates are needed, consider using a list instead of a set.

create SET from STRINGs Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

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.

create SET from STRINGs