cf.outside

cf.outside(value0, value1)

Create a Comparsion object for evaluating whether a variable is outside the given range.

Parameters:
  • value0 (object) – The first element of value attribute tuple in the returned Comparsion object.
  • value1 (object) – The second element of value attribute tuple in the returned Comparsion object.
Returns:

A Comparsion object whose relation attribute is set to the string “outside” and whose value attribute set to the tuple (value0, value1).

Examples

>>> c = cf.outside(5)
>>> c
<CF Comparison: x outside (5, 7)>
>>> c.evaluate(4)
True
>>> c.evaluate(6)
False

Previous topic

cf.ne

Next topic

cf.read

This Page