Primitive
data.validateRange
BETAShort name: validateRange
Version: 1.0.0
Validate that a numeric value is within optional min/max bounds.
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| max | number | false | Inclusive maximum bound. |
| min | number | false | Inclusive minimum bound. |
| value | any | false | Value to validate as a number. |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| ok | boolean | false | True when value is numeric and inside configured bounds. |
| reason | string | false | Failure reason when ok is false. Empty string when ok is true. |