Skip to content

Array length less than or equal

Input
value
Validate that value has at most 2 items
validation:
arrayLengthLessThanOrEqual

Ensure array field length is less than or equal to specified value

source:value
parameters
threshold

Array length must be less than or equal to this

Output
result
Pass
Pass
Pass
Array field "value" length is not less than or equal to 2
Array field "value" length is not less than or equal to 2
Array field "value" length is not less than or equal to 2

Sample inputs run locally in your browser using the same operation logic as Fontana Flow.
Results are illustrative, not connected to a workflow.

Ensure array field length is less than or equal to specified value.

Parameters

  • threshold (number, required) — Array length must be less than or equal to this.

Field selection

  • source — Field whose values this operation reads. Omit to apply to all fields on the row.
  • target — Optional output field. When omitted, the source field is updated in place.

JSON Configuration

{
"id": "op-arrayLengthLessThanOrEqual",
"type": "validation",
"action": "arrayLengthLessThanOrEqual",
"params": {
"threshold": 2
},
"testInputs": [
"[\"v0\",\"v1\"]",
"[\"v0\"]",
"[]",
"[\"v0\",\"v1\",\"v2\"]",
"[\"v0\",\"v1\",\"v2\",\"v3\"]",
"[\"v0\",\"v1\",\"v2\",\"v3\",\"v4\"]"
]
}