Return a comparison object for a variable for being within a range.
x == cf.wi(a, b) is equivalent to x == cf.ge(a) & cf.le(b).
Parameters : |
|
---|---|
Returns : |
|
Examples
>>> c = cf.wi(5, 7)
>>> c
<CF Comparison: wi (5, 7)>
>>> c.evaluate(6)
True
>>> c.evaluate(4)
False