ComfyUI Node: max

Class Name

Basic data handling: DataListMax

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

max Description

DataListMax identifies the maximum value in a list of integers or floats, returning `None` for empty lists.

max:

The DataListMax node is designed to identify the maximum value within a list of numbers, specifically integers and floats. This node is particularly useful when you need to determine the highest numerical value from a dataset, which can be crucial for various data analysis tasks or decision-making processes. By providing a straightforward method to extract the maximum value, it simplifies the process of handling numerical data, ensuring that you can quickly and efficiently obtain the information you need. The node is robust enough to handle empty lists gracefully by returning None, and it also safeguards against non-numeric values, ensuring that only valid numerical data is processed.

max Input Parameters:

list

The list parameter is the primary input for the DataListMax node, requiring a collection of numbers, either integers or floats. This parameter is crucial as it determines the dataset from which the maximum value will be extracted. The list should ideally contain only numeric values to ensure accurate results. If the list is empty or contains non-numeric values, the node will return None. There are no explicit minimum or maximum values for the list, but it should be noted that the list must contain comparable numeric elements for the node to function correctly.

max Output Parameters:

max

The max output parameter represents the maximum value found within the provided list of numbers. This output is significant as it provides the highest numerical value from the dataset, which can be used for further analysis or decision-making. If the list is empty or contains non-numeric values, the output will be None, indicating that no valid maximum value could be determined. This output ensures that you have a clear and concise result from the node's operation.

max Usage Tips:

  • Ensure that the list provided to the node contains only numeric values to avoid unexpected results or errors.
  • Use this node when you need to quickly identify the highest value in a dataset, such as when analyzing trends or making comparisons.

max Common Errors and Solutions:

TypeError: '>' not supported between instances of 'str' and 'int'

  • Explanation: This error occurs when the list contains non-numeric values, such as strings, which cannot be compared with numbers.
  • Solution: Ensure that the list contains only numeric values (integers or floats) before passing it to the node.

ValueError: max() arg is an empty sequence

  • Explanation: This error is raised when the list provided to the node is empty, and thus there is no value to determine as the maximum.
  • Solution: Check that the list is not empty before using the node, or handle the None output gracefully 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