(lower, upper, v, err=IFC)
Check if variable is within the given inclusive range.
Check if variable is within the given inclusive range.
Check if variable is within the given inclusive range .
def range_check_err(lower, upper, v, err=IFC):
    """Check if variable is within the given inclusive range."""
    if v is not None and not (lower <= v <= upper):
        raise BASICError(err)
def range_check_err ( lower , upper , v , err = IFC ) : if v is not None and not ( lower <= v <= upper ) : raise BASICError ( err )