cf.ne

cf.ne(value)

Create a Comparsion object for evaluating whether a variable is not 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 “ne” and whose value attribute set to the value parameter.

Examples

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

Previous topic

cf.lt

Next topic

cf.outside

This Page