cf.ge

cf.ge(value)

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

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

Examples

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

Previous topic

cf.eq

Next topic

cf.gt

This Page