ComfyUI > Nodes > comfy_Pond_Nodes > 🐳多数值比较

ComfyUI Node: 🐳多数值比较

Class Name

MultiNumberCompare

Category
🐳Pond/Tools
Author
Pondowner857 (Account age: 730days)
Extension
comfy_Pond_Nodes
Latest Updated
2026-01-28
Github Stars
0.04K

How to Install comfy_Pond_Nodes

Install this extension via the ComfyUI Manager by searching for comfy_Pond_Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfy_Pond_Nodes 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

🐳多数值比较 Description

Compares multiple numbers to find max, min, median, average, sum, and sort them.

🐳多数值比较:

The MultiNumberCompare node is designed to facilitate the comparison of multiple numerical values, providing a versatile tool for analyzing and processing numerical data within your AI art projects. This node allows you to perform various statistical operations such as finding the maximum, minimum, median, average, sum, and sorting numbers in ascending order. By leveraging these capabilities, you can gain insights into your data, make informed decisions, and enhance the creative process. The node is particularly useful when dealing with large datasets or when you need to extract specific statistical information quickly and efficiently. Its integration into the 🐳Pond/Tools category underscores its utility in a wide range of applications, making it an essential component for artists and developers working with numerical data.

🐳多数值比较 Input Parameters:

numbers

The numbers parameter is a list of integers that you wish to compare or analyze. This parameter serves as the primary input for the node, and its values directly influence the results of the statistical operations performed. There is no explicit minimum or maximum value for each number, but the list should contain at least one number to produce meaningful results. The default behavior is to process all numbers provided in the list.

output_mode

The output_mode parameter determines the type of statistical operation to be performed on the input numbers. It accepts options such as "max" for maximum, "min" for minimum, "median" for median, "average" for average, "sum" for sum, and "sorted_asc" for sorting in ascending order. This parameter is crucial as it defines the specific analysis or comparison you wish to conduct, thereby affecting the node's output. The default value is not specified, so you must choose an appropriate mode based on your needs.

🐳多数值比较 Output Parameters:

result

The result parameter provides the primary output of the node, reflecting the outcome of the selected statistical operation. For example, if the output_mode is set to "max," the result will be the maximum value from the input numbers. This output is essential for understanding the key statistical measure derived from your data.

secondary_result

The secondary_result parameter offers additional information related to the primary result. For instance, when calculating the average, this parameter provides the standard deviation, rounded to the nearest integer. In the case of a sum operation, it returns the count of numbers processed. This output enhances the depth of analysis by supplying supplementary data that can be crucial for comprehensive insights.

info

The info parameter delivers a descriptive summary of the operation performed and its result. It includes details such as the type of operation, the number of numbers involved, and the computed result. This output is valuable for documentation and understanding the context of the analysis, ensuring clarity and transparency in the results.

🐳多数值比较 Usage Tips:

  • To optimize performance, ensure that the list of numbers is pre-validated to contain only integers, as this will prevent errors and ensure accurate results.
  • When using the "average" mode, consider the impact of outliers on the result and use the secondary_result to assess the variability of your data through the standard deviation.

🐳多数值比较 Common Errors and Solutions:

Invalid input type

  • Explanation: This error occurs when the input list contains non-integer values or is empty.
  • Solution: Ensure that all elements in the numbers list are integers and that the list is not empty before executing the node.

Unsupported output mode

  • Explanation: This error arises when an invalid output_mode is specified.
  • Solution: Verify that the output_mode is set to one of the supported options: "max," "min," "median," "average," "sum," or "sorted_asc."

Division by zero

  • Explanation: This error can occur in "average" mode if the list of numbers is empty, leading to a division by zero.
  • Solution: Always check that the numbers list contains at least one element before performing operations that involve division.

🐳多数值比较 Related Nodes

Go back to the extension to check out more related nodes.
comfy_Pond_Nodes
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.