(lower, upper, *allvars)
Check if all variables in list are within the given inclusive range.
Check if all variables in list are within the given inclusive range.
Check if all variables in list are within the given inclusive range .
def range_check(lower, upper, *allvars):
    """Check if all variables in list are within the given inclusive range."""
    for v in allvars:
        if v is not None and not (lower <= v <= upper):
            raise BASICError(IFC)
def range_check ( lower , upper , * allvars ) : for v in allvars : if v is not None and not ( lower <= v <= upper ) : raise BASICError ( IFC )