`math.clamp`

returns a number instead of a boolean, but is there way to make it return a boolean either through a formula or a function? Since lowest number would return the minimum given number, same for maximum, but I want either true if number is between (equal or highest to min/max) and false if not (lower but not equal to minimum and number and higher than maximum).

e.g

`math.clamp(4,6,12) -- would return false`

`math.clamp(12,6,12) -- would return true`

1 Like

return math.clamp(num,6,12) == num

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.