nimble.match.nonZero

nimble.match.nonZero(value)

Determine if a value is not equal to zero.

Return True if the value is not zero, otherwise False. Non-zero values include any value not equal to zero.

Parameters:

value

Returns:

bool

Examples

>>> nonZero(1)
True
>>> nonZero('0')
True
>>> nonZero(0)
False
>>> nonZero(0.0)
False