evm_iszero

Implements the EVM ISZERO opcode: returns BIGINT 1 when the complete UINT256 word is zero and 0 otherwise. NULL input propagates to NULL.

Example

Local

1
SELECT evm_iszero(7::UINT256) AS result;
2
-- => [{"result":0}]
Notebook ready in readonly mode.

API reference

Exact signatures with descriptions, requirements, inputs, returns, and examples.

evm_iszero(UINT256) #

Returns 1 for a zero UINT256 input and 0 otherwise.

Inputs

Name Type Use
x UINT256

UINT256 word tested for zero.

required positional

Returns

Name Type
is_zero BIGINT

Zero indicator. BIGINT 1 or 0, or NULL for NULL input.

Category and tags

Category
EVM utilities
Tag
Types
Tag
EVM