ComfyUI Node: enumerate

Class Name

Basic data handling: ListEnumerate

Category
Basic/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, starting at index 0 by default, for ordered processing.

enumerate:

The ListEnumerate node is designed to transform a list 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 beneficial for tasks that require ordered processing or when the index itself holds significance in your workflow. By default, the enumeration starts at index 0, but you have the flexibility to specify a different starting index if needed. This feature allows for greater control and customization, making it adaptable to various scenarios where list indexing is crucial.

enumerate Input Parameters:

list

The list parameter is the primary input for the ListEnumerate node, representing the collection of items you wish to enumerate. This parameter accepts any list of elements, regardless of their data type, and is essential for the node's operation as it forms the basis of the enumeration process. There are no specific minimum or maximum values for this parameter, as it can accommodate lists of any length. The list parameter is required for the node to function, and its contents directly influence the output, as each element will be paired with an index.

start

The start parameter is an optional input that allows you to define the starting index for the enumeration process. By default, this parameter is set to 0, meaning the enumeration will begin with the first element of the list being assigned an index of 0. However, you can specify a different integer value if you wish to start the enumeration from a different point. This flexibility is particularly useful when integrating the node into workflows where the index needs to align with external data or specific requirements. The start parameter impacts the resulting index-value pairs by shifting the starting point of the enumeration.

enumerate Output Parameters:

list

The output list parameter 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 position and the value of each element in the list, enabling you to perform operations that depend on the order or specific indices of elements. The output list maintains the order of the input list, with indices adjusted according to the specified start parameter.

enumerate Usage Tips:

  • Use the start parameter to align the enumeration with external data sources or specific requirements, ensuring that the indices match your workflow needs.
  • When working with large lists, consider the impact of the starting index on subsequent operations, especially if the indices are used for further processing or data manipulation.

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.
  • Solution: Ensure that the input is a properly formatted list. Check for any syntax errors or data type mismatches that might prevent the node from processing the input correctly.

Invalid start value

  • Explanation: This error arises when the start parameter is not an integer or is improperly formatted.
  • Solution: Verify that the start parameter is an integer. If you are using a variable or expression to set this value, ensure it evaluates to a valid integer.

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