Create a Comparsion object for evaluating whether a variable is outside the given range.
Parameters: |
|
---|---|
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