Thread
:
limit(value, min, max)
View Single Post
#
1
08-25-2009, 07:26 PM
fowlplay4
team canada
Join Date: Jul 2004
Location: Canada
Posts: 5,200
limit(value, min, max)
Make it a hard-coded function already regardless of how easy it is to script the function.
PHP Code:
function
limit
(
val
,
min
,
max
) {
return (
val
<
min
?
min
: (
val
>
max
?
max
:
val
));
}
__________________
Quote:
fowlplay4
View Public Profile
View GraalOnline Profile
Visit fowlplay4's homepage!
Find all posts by fowlplay4