cf.lt

cf.lt(value)

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

Parameters:value (object) – The value attribute in the returned Comparison object.
Returns:A Comparsion object whose relation attribute is set to the string “lt” and whose value attribute set to the value parameter.

Examples

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

Previous topic

cf.le

Next topic

cf.ne

This Page