ComfyUI Node: add

Class Name

Basic data handling: SetAdd

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

add Description

SetAdd node adds unique items to a set, preventing duplicates and maintaining data integrity.

add:

The SetAdd node is designed to enhance your data manipulation capabilities by allowing you to add an item to an existing set. This node is particularly useful when you need to dynamically update a set with new elements without altering its existing structure. The primary advantage of using this node is its ability to maintain the uniqueness of elements within the set, as it automatically prevents duplicate entries. This ensures that your data remains clean and organized, which is crucial for efficient data handling and processing. By leveraging the SetAdd node, you can seamlessly integrate new data into your existing sets, making it an essential tool for tasks that require dynamic data updates.

add Input Parameters:

set

The set parameter represents the initial collection of unique items to which you want to add a new element. This parameter is crucial as it serves as the base set that will be updated. The set can contain any type of data, such as numbers, strings, or objects, and it ensures that all elements remain unique. There are no specific minimum or maximum values for this parameter, as it can be an empty set or contain multiple items.

item

The item parameter is the new element you wish to add to the existing set. This parameter can be of any data type, allowing for flexibility in the types of data you can incorporate into your set. When the item is added, the set automatically checks for duplicates, ensuring that the item is only added if it is not already present. This feature helps maintain the integrity and uniqueness of the set.

add Output Parameters:

SET

The output parameter is a SET, which is the updated collection of unique items after the new item has been added. This output reflects the changes made to the original set, showcasing the addition of the new element if it was not already present. The updated set maintains its property of containing only unique elements, making it a reliable data structure for further processing or analysis.

add Usage Tips:

  • Use the SetAdd node when you need to dynamically update a set with new data while ensuring that all elements remain unique.
  • Consider using this node in workflows where data integrity and uniqueness are critical, such as in data cleaning or preprocessing tasks.

add Common Errors and Solutions:

TypeError: 'set' object is not callable

  • Explanation: This error occurs when you mistakenly try to call the set as a function, which is not allowed.
  • Solution: Ensure that you are using the set correctly by passing it as a parameter to the SetAdd node, rather than attempting to call it.

AttributeError: 'set' object has no attribute 'add'

  • Explanation: This error might occur if the set object is not properly initialized or if there is a typo in the method name.
  • Solution: Verify that the set is correctly initialized and that you are using the add method correctly within the SetAdd node.

add 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.

add