checkForMatch(self,
obj_val,
operator,
goal=None,
isCaseSensitive=None)
|
|
Check to see if a value matches this criterion. Returns True if:
"obj_val operator" ("Schrodinger is True" 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 - Not used, none of the Boolean operators requires a value to
compare against.
isCaseSensitive - ignored (added for compatibility with base class)
- Returns: bool
- True if "obj_val operator" is True, False if not
- Raises:
ValueError - if operator is not recognized
- Overrides:
StringDatabaseCriterion.checkForMatch
|