SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

data.validateRange

BETA

Short name: validateRange

Version: 1.0.0

Validate that a numeric value is within optional min/max bounds.

Back to primitive library

Inputs

KeyTypeRequiredDescription
maxnumberfalseInclusive maximum bound.
minnumberfalseInclusive minimum bound.
valueanyfalseValue to validate as a number.

Outputs

KeyTypeRequiredDescription
okbooleanfalseTrue when value is numeric and inside configured bounds.
reasonstringfalseFailure reason when ok is false. Empty string when ok is true.