Visit ComfyUI Online for ready-to-use ComfyUI environment
Perform subtraction operation on two integer inputs, automating basic mathematical tasks for streamlined workflow.
The JWIntegerSub node is designed to perform a simple yet essential arithmetic operation: subtraction. This node takes two integer inputs and subtracts the second integer from the first, returning the result. It is particularly useful in scenarios where you need to calculate the difference between two values, such as adjusting parameters, calculating offsets, or performing any task that requires subtraction. By automating this basic mathematical operation, the JWIntegerSub node helps streamline your workflow, allowing you to focus on more complex aspects of your project.
This parameter represents the first integer value from which the second integer will be subtracted. It serves as the minuend in the subtraction operation. The default value is 0, and it can be set to any integer value depending on your specific needs.
This parameter represents the second integer value that will be subtracted from the first integer. It serves as the subtrahend in the subtraction operation. The default value is 0, and it can be set to any integer value depending on your specific needs.
The output of this node is a single integer value, which is the result of subtracting the second input parameter (b) from the first input parameter (a). This output can be used in subsequent nodes or operations where the difference between the two input values is required.
KeyError: 'a' or 'b'
a
and b
, are correctly specified and have valid integer values.TypeError: unsupported operand type(s) for -: 'str' and 'int'
ValueError: invalid literal for int() with base 10
© Copyright 2024 RunComfy. All Rights Reserved.