cf.lt

cf.lt(value, units=None)

Return an object for testing whether a variable is strictly less than a given value.

Parameters :
value : object

The value which a variable is to be compared with.

Returns :
out : Comparison

A Comparison object which will evaluate whether or not the comparison evaluates to True.

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