Validates the variable`s value. Returns the default if value is empty or not in the range [from - to]. from, to parameters are optional.
Function Validate(deflt, from, to)
deflt (input) - the default value to return
from (input) - the lower bound of the range
to (input) - the uppder bound of the range