ComfyUI Node: enumerate

Class Name

Basic data handling: DataListEnumerate

Category
Basic/Data List
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

enumerate Description

Transforms a list into index-value pairs, allowing flexible enumeration starting from any index.

enumerate:

The DataListEnumerate node is designed to transform a list of data into a sequence of index-value pairs, effectively enumerating the list. This node is particularly useful when you need to keep track of the position of each element within a list, which can be crucial for tasks that require ordered processing or when you need to reference specific elements by their position. By providing an option to specify a starting index, this node offers flexibility in how enumeration is handled, allowing you to start counting from any integer value, not just zero. This feature can be beneficial in scenarios where lists are part of a larger dataset or when integrating with systems that require specific index conventions. Overall, the DataListEnumerate node simplifies the process of pairing list elements with their respective indices, enhancing data manipulation and analysis capabilities.

enumerate Input Parameters:

list

The list parameter is the primary input for the DataListEnumerate node, representing the collection of items you wish to enumerate. This parameter accepts any type of list, allowing for a wide range of data types to be processed. The function of this parameter is to provide the data that will be transformed into index-value pairs. There are no specific minimum or maximum values for this parameter, as it is designed to handle lists of varying lengths and contents. The impact of this parameter on the node's execution is direct, as the enumeration process will iterate over each element in the list, pairing it with its corresponding index.

start

The start parameter is an optional input that specifies the initial value for the index during enumeration. By default, this parameter is set to 0, meaning that the enumeration will begin with the first element of the list being paired with index 0. However, you can customize this starting index to any integer value, which can be particularly useful if you need the enumeration to align with a specific numbering system or if the list is part of a larger sequence. The start parameter influences the output by determining the initial index value, and it can be adjusted to suit the requirements of your specific task.

enumerate Output Parameters:

list

The output parameter list provides the result of the enumeration process, which is a list of index-value pairs. Each pair consists of an index and the corresponding value from the input list, formatted as a sub-list. This output is crucial for tasks that require both the data and its position within the list, enabling more complex data manipulations and analyses. The enumeration output maintains the order of the original list while adding the index information, making it easy to reference and utilize in subsequent operations.

enumerate Usage Tips:

  • Use the start parameter to align the enumeration with external systems or datasets that require specific index conventions.
  • When working with large datasets, ensure that the list is properly formatted and free of errors to avoid unexpected results during enumeration.
  • Consider using the DataListEnumerate node in conjunction with other data manipulation nodes to enhance your data processing workflows.

enumerate Common Errors and Solutions:

Invalid list input

  • Explanation: This error occurs when the input provided to the list parameter is not a valid list or is improperly formatted.
  • Solution: Ensure that the input is a correctly formatted list and that all elements are compatible with the enumeration process.

Invalid start value

  • Explanation: This error arises when the start parameter is set to a non-integer value or is otherwise invalid.
  • Solution: Verify that the start parameter is an integer and adjust it as necessary to ensure proper enumeration.

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

enumerate