Visit ComfyUI Online for ready-to-use ComfyUI environment
Inverts numerical values for easy manipulation in logic operations.
The LogicUtil_LogicGateNegateValue
node is designed to invert a given numerical value, effectively transforming any input x
into its negative counterpart -x
. This node is particularly useful in scenarios where you need to reverse the sign of a value, such as inverting coordinates, reversing directions, or applying negative scaling factors. By providing a straightforward method to negate values, this node simplifies the process of handling numerical inversions in your logic operations, ensuring that you can easily manipulate and control the sign of your inputs.
input1
is the primary input parameter for the LogicUtil_LogicGateNegateValue
node. It accepts any numerical value and serves as the value to be negated. The function of this parameter is to provide the initial value that will be inverted by the node. The default value for input1
is 0
, meaning that if no specific value is provided, the node will negate 0
, resulting in 0
. There are no explicit minimum or maximum values for this parameter, as it can handle any numerical input, whether positive, negative, or zero.
The output parameter of the LogicUtil_LogicGateNegateValue
node is of type anytype
, which means it can return a value of any numerical type, depending on the input provided. The function of this output is to deliver the negated value of the input parameter input1
. For example, if input1
is 5
, the output will be -5
; if input1
is -3
, the output will be 3
. This output is crucial for applications requiring the inversion of numerical values, allowing for flexible and dynamic adjustments in various computational and logical processes.
LogicUtil_LogicGateNegateValue
node when you need to reverse the sign of a numerical value quickly and efficiently.input1
is not a numerical value.input1
is a valid numerical value, such as an integer or a float.input1
to ensure it is the correct value you intend to negate.© Copyright 2024 RunComfy. All Rights Reserved.