checkForMatch(self,
obj_val,
operator,
goal,
isCaseSensitive=None)
|
|
Check to see if a value matches this criterion. Returns True if:
"obj_val operator goal" ("20 >= 10" returns True)
- Parameters:
obj_val (int or float) - The value being checked
operator (int or float) - An operator as defined in the __init__ method of the StringDatabaseCriterion class criteria
paramater.
goal (int, float or list) - The value to compare against, or in the case of the SELECT
operator, goal is a list of int or float
isCaseSensitive - ignored (added for compatibility with base class)
- Returns: bool
- True if "obj_val operator goal" is True, False if not
- Raises:
ValueError - if operator is not recognized
- Overrides:
StringDatabaseCriterion.checkForMatch
|