ComfyUI Node: get item

Class Name

Basic data handling: DataListGetItem

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

get item Description

Retrieves an item from a list by index, supporting positive/negative indices, returns `None` if out of range.

get item:

The DataListGetItem node is designed to retrieve an item from a specified position within a list. This node is particularly useful when you need to access a specific element in a list based on its index. It supports both positive and negative indices, allowing you to count from the beginning or the end of the list, respectively. If the specified index is out of the list's range, the node gracefully returns None, ensuring that your workflow does not break due to index errors. This functionality is essential for tasks that require precise data extraction from lists, making it a valuable tool for managing and manipulating data in a structured manner.

get item Input Parameters:

list

This parameter represents the list from which you want to retrieve an item. It can be any type of list, including lists of numbers, strings, or other data types. The list serves as the primary data source for the node's operation.

index

The index parameter specifies the position of the item you wish to retrieve from the list. It accepts integer values, with a default value of 0. Positive indices start from the beginning of the list, while negative indices count backward from the end. If the index is out of range, the node returns None.

get item Output Parameters:

item

The item output parameter provides the element retrieved from the specified index in the list. If the index is valid, this parameter returns the corresponding item; otherwise, it returns None. This output is crucial for accessing specific data points within a list for further processing or analysis.

get item Usage Tips:

  • Use negative indices to easily access elements from the end of the list without needing to calculate the exact position.
  • Ensure that the list is not empty before attempting to retrieve an item to avoid unnecessary None returns.

get item Common Errors and Solutions:

IndexError

  • Explanation: This error occurs when the specified index is out of the range of the list.
  • Solution: Verify that the index is within the valid range of the list's length. Consider using conditional checks or handling the None return to manage out-of-range indices gracefully.

get item 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.

get item