Quote:
Originally Posted by scriptless
I never knew about
PHP Code:
max(a, b) - returns the higher number.
|
It also works well together with min() to "lock" a number to a certain range:
PHP Code:
max(0, min(100, temp.var))
Will return temp.var, 0 if it's below 0 and 100 if it's above 100.