cf.gt

cf.gt(value)

Create a Comparsion object for evaluating whether a variable is greater than the given value.

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

Examples

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

Previous topic

cf.ge

Next topic

cf.inside

This Page