Array length equal to
Input
| value |
|---|
Validate that value has exactly 2 items
validation:arrayLengthEqualTo
Ensure array field has specified length
source:value
parameters
- length
Expected array length
Output
| result |
|---|
| Pass |
| Pass |
| Pass |
| Array field "value" length is not equal to 2 |
| Array field "value" length is not equal to 2 |
| Array field "value" length is not 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 has specified length.
Parameters
- length (number, required) — Expected array length. Examples:
0,1,3,10.
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-arrayLengthEqualTo", "type": "validation", "action": "arrayLengthEqualTo", "params": { "length": 2 }, "testInputs": [ "[\"v0\",\"v1\"]", "[\"x\",\"y\"]", "[\"1\",\"2\"]", "[]", "[\"a\"]", "[\"a\",\"b\",\"c\"]" ]}