cf.inside

cf.inside(value0, value1)

Create a Comparison object for evaluating whether a variable is inside the given range.

Parameters:
  • value0 (object) – The lower bound of the range which a variable is to be compared with.
  • value1 (object) – The upper bound of the range which a variable is to be compared with.
Returns:

A Comparison object which will evaluate whether or not the comparison evaluates to True.

Examples:

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

Previous topic

cf.lt

Next topic

cf.outside

This Page