How can I make boundaries for a numerical value in the node editor? I am trying to make a node setup where:


If the input is 0 or anything less it outputs 0
If the input is 5 or anything greater it outputs 5
If the input is between 0 and 5 it outputs the input


I can't figure out how to do this because 'greater than or equal to' and 'less than or equal to' are not options for the math node and the minimum and maximum nodes are only boolean and don't allow me to output the original number (if it is allowed).
Maybe there is a better/more efficient way to do that, but the Clamp parameter should do the job :