value
(integer): The input value to be clamped. Default is 0.min
(integer): The minimum allowed value. Default is 0.max
(integer): The maximum allowed value. Default is 0.result
(integer): The clamped output value.value
input. This is the value you want to constrain to the specified range.min
input to the minimum allowed value for the output.max
input to the maximum allowed value for the output.result
output will emit the input value if it’s within the [min, max] range. If the input is less than min
, result
will be min
. If the input is greater than max
, result
will be max
.value
input of CLAMP.min
input to 0.max
input to 50.result
output to the rest of your spell.min
and max
values. If you need an exclusive range, adjust your bounds accordingly.min
is greater than max
, CLAMP will swap their values internally so that min
is always less than or equal to max
.min
/max
bounds must be integers. For floating-point clamping, use the CLAMP (Float) node instead.