1.7. cf.lt

cf.lt(value)

Create a Comparison object for evaluating whether a variable is strictly less than the given value.

Parameters:value (object) – The value which a variable is to be compared with.
Returns:A Comparison object which will evaluate whether or not a variable is strictly less than the given value.

Examples

>>> c = cf.lt(5)
>>> c
<CF Comparison: x lt 5>
>>> c.evaluate(4)
True
>>> c.evaluate(5)
False

Previous topic

1.6. cf.le

Next topic

1.8. cf.ne

This Page