View Single Post
  #1  
Old 08-25-2009, 07:26 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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:
Reply With Quote