---
title: RangeExpression type | Wartiva GraphQL API
description: RangeExpressions represents an nftables expression for matching a value within a specified range. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/range-expression.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `RangeExpression` type

RangeExpressions represents an nftables expression for matching a value within a specified range.

## Fields

| Field Name | Description |
|---|---|
| `op` - [`NftCmpOp!`](https://wartiva.com/api-docs/types/nft-cmp-op.html) | The comparison operator to use for the range check . |
| `register` - [`NftRegister!`](https://wartiva.com/api-docs/types/nft-register.html) | The register holding the value to be compared against the range. |
| `fromData` - [`Binary!`](https://wartiva.com/api-docs/types/binary.html) | The lower bound (inclusive) of the range. |
| `toData` - [`Binary!`](https://wartiva.com/api-docs/types/binary.html) | The upper bound (inclusive) of the range. |

## 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",
  "fromData": Binary,
  "toData": Binary
}

```

---

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