# Number In Range

Test finite value against socket-provided minimum and maximum. Configuration includeMinimum and includeMaximum default true. Reversed bounds fail instead of swapping. Equal bounds contain that number only when both endpoints are included. E

Canonical URL: https://opennodeflow.dev/wiki/reference-logic-compare-range/
JSON reference: https://opennodeflow.dev/wiki/reference-logic-compare-range/index.json
Source snapshot: 2026-10-23

# Number In Range

Test finite value against socket-provided minimum and maximum. Configuration includeMinimum and includeMaximum default true. Reversed bounds fail instead of swapping. Equal bounds contain that number only when both endpoints are included. Example: value 10, minimum 0, maximum 10 → true; includeMaximum=false → false.

Pure transformation: no I/O, secrets, logging or persistent state. No account setup is required. Errors throw to the error control path. Runtime validates inputs, configuration and returned data against the pinned contracts. Configuration defaults stated here are also implemented in code. Data wires alone do not choose execution paths. Existing JSON Value/List sockets are explicit dynamic JSON boundaries, not provider entity schemas.

Inputs: `value` (number, required), `minimum` (number, required), `maximum` (number, required). Outputs: `result` (boolean, required).

Unless a stricter limit is stated, JSON processing accepts at most 1 MiB UTF-8, 20000 values, depth 64, 10000 array items and 200000 UTF-16 code units per string/key. Invalid values fail without echoing payloads. JSON cannot transport undefined, cycles, BigInt, NaN or Infinity. Primitive text operations use the same 200000 code-unit bound. All type/executor dependencies are exact immutable pins; reading Latest help never upgrades graph instances.

## Audited socket contract (21 October 2026)

Inputs:
- `value`: `number`; required.
- `minimum`: `number`; required.
- `maximum`: `number`; required.

Outputs:
- `result`: `boolean`; required.

Configuration:
- `includeMinimum`: boolean; default true
- `includeMaximum`: boolean; default true

Known provider records and list elements have structural schemas. Explicit dynamic payloads, selected query results and provider extensions retain the recursive JSON Value vocabulary; they do not imply a known provider entity. Null is distinct from omission. Runtime validates the exact selected immutable type version; reading newer documentation never repins existing graphs. This audit used synthetic fixtures/local mocks and does not establish live provider authorization or delivery.

## Catalog identity

| Field | Value |
| --- | --- |
| Source key | `logic.compare.range` |
| Kind | node |
| Family | logic |
| Pack | See library discovery |

[Integration guide](/wiki/integration-logic/) · [Browse the catalog](/wiki/integration-catalog/)

## Inputs

| Socket ID | Label | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `exec` | Exec | control | No |  |
| `value` | Value | number | Yes |  |
| `minimum` | Minimum | number | Yes |  |
| `maximum` | Maximum | number | Yes |  |

## Outputs

| Socket ID | Label | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `next` | Next | control | No |  |
| `result` | Result | boolean | Yes |  |
| `error` | Error | control | No |  |

## Configuration schema


```json
{
  "type": "object",
  "properties": {
    "includeMinimum": {
      "type": "boolean",
      "default": true
    },
    "includeMaximum": {
      "type": "boolean",
      "default": true
    }
  },
  "additionalProperties": false
}
```





## Source and installed versions

This reference describes the maintained source catalog snapshot, not a live export of your installation. Published definitions use immutable versions; installed graphs retain their exact pins. Discover and read the installed definition and selected version before wiring it. See [versioning](/wiki/versioning/), [connections](/wiki/connections/) and [integration setup](/wiki/integration-setup/).

---

## Documentation provenance

- `../OpenNodeFlow-Library/work/catalog-all.mjs`
- `../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs`
- `../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs`
- `shared/seed.ts`
- `shared/storage-library.ts`
- `shared/variable-library.ts`
- `shared/control-flow.ts`
- `shared/remote-routes.ts`
- `server/runtime-library.ts`
- `shared/error-library.ts`
- `shared/storage-model.ts`
- `shared/builtin-documentation.ts`

This page describes maintained source, not a live inventory or an authorization to perform actions.
