ComfyUI Node: get item

Class Name

Basic data handling: ListGetItem

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

get item Description

ListGetItem retrieves list items by index, supports positive/negative indices, returns None if out of range.

get item:

The ListGetItem node is designed to efficiently retrieve an item from a specified position within a list. This node is particularly useful when you need to access specific elements in a list without manually iterating through it. By providing an index, you can directly obtain the desired item, making data handling more streamlined and efficient. The node 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 range, the node gracefully returns None, ensuring that your workflow does not break due to unexpected errors. This functionality is essential for AI artists who need to manipulate and access list data dynamically within their creative processes.

get item Input Parameters:

list

The list parameter is the primary input for the node, representing the collection of items from which you want to retrieve a specific element. This parameter accepts any list of items, allowing for flexibility in the types of data you can work with. The list can contain elements of any data type, such as numbers, strings, or even other lists. The node will attempt to access the element at the specified index within this list.

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 counting from the beginning of the list, while negative indices count from the end. For example, an index of -1 will return the last item in the list. If the index is out of the list's range, the node will return None, ensuring that your workflow remains robust and error-free.

get item Output Parameters:

item

The item output parameter provides the element retrieved from the specified index of the input list. This output is crucial for further processing or analysis within your workflow. If the index is valid, the output will be the item at that position in the list. If the index is out of range, the output will be None, allowing you to handle such cases gracefully in your data processing pipeline.

get item Usage Tips:

  • Use negative indices to easily access elements from the end of the list without needing to calculate their positions manually.
  • Always check for None in the output to handle cases where the index might be out of range, ensuring your workflow remains robust.

get item Common Errors and Solutions:

IndexError

  • Explanation: This error occurs when the specified index is out of the range of the list.
  • Solution: Ensure that the index is within the valid range of the list. You can use conditional checks to verify the index before passing it to the node.

TypeError

  • Explanation: This error might occur if the input list is not a valid list type.
  • Solution: Verify that the input provided to the list parameter is indeed a list. Convert other data types to a list if necessary before using the node.

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