Visit ComfyUI Online for ready-to-use ComfyUI environment
Compare integer values to determine larger, aiding decision-making and workflow optimization based on size.
The Largest Int (JPS) node is designed to compare two integer values and determine which one is larger. This node is particularly useful when you need to make decisions based on the relative size of two numbers. By providing a straightforward comparison, it helps streamline workflows that require conditional logic based on integer values. The node not only identifies the larger and smaller integers but also indicates whether the first integer is larger than the second. This functionality can be beneficial in various scenarios, such as setting thresholds, optimizing parameters, or simply organizing data based on size.
This parameter represents the first integer to be compared. It serves as one of the two inputs for the comparison operation. The default value is 1, and it can be any integer value. The value of int_a will be compared against int_b to determine which is larger.
This parameter represents the second integer to be compared. It serves as the other input for the comparison operation. The default value is 1, and it can be any integer value. The value of int_b will be compared against int_a to determine which is larger.
This output parameter returns the larger of the two input integers. It provides a clear indication of which input value is greater, making it easier to use in subsequent operations or decisions.
This output parameter returns the smaller of the two input integers. It helps in identifying the lesser value between the two inputs, which can be useful for various conditional operations.
This output parameter returns a binary value (0 or 1) indicating whether int_a is larger than int_b. A value of 1 means int_a is larger, while a value of 0 means int_b is larger or they are equal. This output is particularly useful for conditional branching based on the comparison result.
larger_int output to set thresholds or limits in your workflow, ensuring that you always work with the maximum value.is_a_larger output for conditional branching, allowing your workflow to adapt based on which input integer is larger.int_a and int_b are valid integers before passing them to the node.int_a and int_b values to ensure the node can perform the comparison.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.