def compliesTo(self, v):
        """Return whether I am compatible with the given var:
             - Type should be the same
             - My value should be inside the given vars' min/max range.
        """
        if self.type == v.type:
            if self.type == NUMBER:
                if self.value < self.min or self.value > self.max:
                    return False
            return True
        return False
def compliesTo(self, v):
        """Return whether I am compatible with the given var:
             - Type should be the same
             - My value should be inside the given vars' min/max range.
        """
        if self.type == v.type:
            if self.type == NUMBER:
                if self.value < self.min or self.value > self.max:
                    return False
            return True
        return False
def compliesTo ( self , v ) : if self . type == v . type : if self . type == NUMBER : if self . value < self . min or self . value > self . max : return False return True return False
Return whether I am compatible with the given var:
             - Type should be the same
             - My value should be inside the given vars' min/max range.
Return whether I am compatible with the given var : - Type should be the same - My value should be inside the given vars min / max range .