ComfyUI Node: max

Class Name

Basic data handling: ListMax

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

max Description

ListMax node identifies and returns the maximum value from a list of comparable items, handling errors.

max:

The ListMax node is designed to identify and return the maximum value from a list of comparable items. This node is particularly useful when you need to determine the largest element within a collection, whether it be numbers, strings, or other comparable data types. It simplifies the process of finding the maximum value by handling the comparison internally, ensuring that you receive the correct result without needing to manually iterate through the list. The node is robust enough to handle empty lists or lists with non-comparable elements by returning None in such cases, thus preventing errors and ensuring smooth operation.

max Input Parameters:

list

The list parameter is the primary input for the ListMax node, requiring a collection of items that you wish to evaluate. This parameter accepts any list of comparable elements, such as numbers or strings. The function of this parameter is to provide the data set from which the maximum value will be extracted. There are no specific minimum or maximum values for the list itself, but it must contain comparable items for the node to function correctly. If the list is empty or contains elements that cannot be compared, the node will return None.

max Output Parameters:

max_value

The max_value output parameter represents the maximum value found within the provided list. This output is crucial as it gives you the largest element from your input data, which can be used for further processing or decision-making in your workflow. If the list is empty or contains non-comparable elements, this parameter will output None, indicating that no maximum value could be determined.

max Usage Tips:

  • Ensure that all elements in the list are of comparable types to avoid unexpected None results.
  • Use this node when you need to quickly identify the largest element in a dataset, such as finding the highest score in a list of numbers.

max Common Errors and Solutions:

TypeError or ValueError

  • Explanation: These errors occur when the list contains elements that cannot be compared, such as mixing numbers with strings.
  • Solution: Verify that all elements in the list are of the same type or are otherwise comparable to ensure the node can correctly determine the maximum value.

Empty List

  • Explanation: If the list is empty, the node will return None because there are no elements to compare.
  • Solution: Ensure that the list contains at least one element before passing it to the node, or handle the None output appropriately in your workflow.

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

max