ComfyUI Node: extend

Class Name

Basic data handling: ListExtend

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

extend Description

Combines two lists into one unified list, preserving original lists and ensuring data integration.

extend:

The ListExtend node is designed to seamlessly combine two lists into a single, unified list. This node is particularly useful when you need to aggregate data from multiple sources or when you want to append elements from one list to another without altering the original lists. By leveraging this node, you can efficiently manage and manipulate list data, ensuring that all elements from both input lists are included in the resulting list. This functionality is essential for tasks that require comprehensive data handling and integration, making it a valuable tool for AI artists who need to work with complex data structures in their creative processes.

extend Input Parameters:

list1

list1 is the first input parameter representing a list of elements that you want to extend. This list serves as the base to which elements from the second list will be appended. It can contain any type of data, including numbers, strings, or even other lists. There are no specific minimum or maximum values for this parameter, as it is designed to handle lists of any size. The default value is an empty list if not specified.

list2

list2 is the second input parameter, which contains the elements that will be appended to list1. Like list1, this parameter can include any type of data and is not restricted by size. The elements from list2 will be added to the end of list1, resulting in a new list that combines both sets of elements. The default value is an empty list if not specified.

extend Output Parameters:

LIST

The output parameter is a single list that contains all the elements from both list1 and list2. This combined list is the result of appending the elements of list2 to list1, preserving the order of elements as they appear in the input lists. The output list is a new list, meaning that the original input lists remain unchanged. This ensures that you can safely use the node without affecting the original data.

extend Usage Tips:

  • Use ListExtend when you need to merge data from two separate lists into one, especially when working with datasets that need to be processed together.
  • Ensure that both input lists are correctly defined to avoid unexpected results. If either list is empty, the node will simply return the non-empty list as the output.

extend Common Errors and Solutions:

TypeError: 'NoneType' object is not iterable

  • Explanation: This error occurs when one or both of the input parameters are not properly defined as lists, resulting in a None value being passed to the node.
  • Solution: Verify that both list1 and list2 are correctly initialized as lists before passing them to the node. Ensure that they are not None and contain valid list data.

Unexpected output format

  • Explanation: If the output list does not match the expected format, it may be due to incorrect data types within the input lists.
  • Solution: Check the contents of list1 and list2 to ensure they contain compatible data types that can be combined into a single list. Adjust the input data as necessary to achieve the desired output format.

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

extend