function inrange(value, min, max) return value >= min and value <= max end