---
title: CmpExpression type | Wartiva GraphQL API
description: CmpExpression represents an nftables expression for comparing a value held in a register against a constant data value.
url: https://wartiva.com/api-docs/types/cmp-expression.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `CmpExpression` type

CmpExpression represents an nftables expression for comparing a value held in a register against a constant data value.

## Fields

| Field Name | Description |
|---|---|
| `op` - [`NftCmpOp!`](https://wartiva.com/api-docs/types/nft-cmp-op.html) | The comparison operator to use. |
| `register` - [`NftRegister!`](https://wartiva.com/api-docs/types/nft-register.html) | The register holding the value to be compared. |
| `data` - [`Binary!`](https://wartiva.com/api-docs/types/binary.html) | The constant data value against which the register's value will be compared. |

## Used by

- [`ChainExpression`](https://wartiva.com/api-docs/types/chain-expression.html) union: A union of all possible nftables chain expression types.

## Example

### Example

```json
{"op": "EQUALS", "register": "VERDICT", "data": Binary}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
