Join
Synopsis
Combines elements from an array into a single string using a specified separator.
Schema
join:
- field: <ident>
- separator: <string>
- description: <text>
- if: <script>
- ignore_failure: <boolean>
- ignore_missing: <boolean>
- on_failure: <processor[]>
- on_success: <processor[]>
- tag: <string>
- target_field: <ident>
Configuration
| Field | Required | Default | Description |
|---|---|---|---|
field | Y | - | Source field containing array of strings |
separator | Y | - | String to insert between elements |
description | N | - | Documentation note |
if | N | - | Conditional expression |
ignore_failure | N | false | Skip processing errors |
ignore_missing | N | false | Skip if input field missing |
on_failure | N | - | Error handling processors |
on_success | N | - | Success handling processors |
tag | N | - | Identifier for logging |
target_field | N | field | Output field for joined string |
Details
The processor expects an array of strings as input and produces a concatenated string with the specified separator between elements.
warning
Empty arrays return an empty string.
Common uses are converting arrays into human-readable lists, combining path or URL segments with appropriate separators, concatenating multiple tags, creating comma-separated values from arrays.
Missing fields can be handled with the ignore_missing flag.
Examples
Basic
Joining array elements with a comma... | |
creates a comma-separated string: | |
Empty Arrays
Joining an empty array... | |
creates an empty string: | |
Separator
Joining with a slash... | |
creates a path string: | |
Error Handling
Handling missing source field... | |
continues execution: | |