SocialluxSociallux
Toggle navigation menu
Docs navigationv

Primitive

data.validateStringLength

BETA

Short name: validateStringLength

Version: 1.0.0

Validate that a string length is within optional min/max bounds.

Back to primitive library

Inputs

KeyTypeRequiredDescription
maxnumberfalseInclusive maximum string length.
minnumberfalseInclusive minimum string length.
valueanyfalseValue to validate as a string.

Outputs

KeyTypeRequiredDescription
okbooleanfalseTrue when value is a string and length is within bounds.
reasonstringfalseFailure reason when ok is false. Empty string when ok is true.