---
title: fn::join
url: /docs/esc/environments/syntax/builtin-functions/fn-join/
---
The `fn::join` built-in function joins the elements of a list of strings using a given delimiter. If any input to `fn::join` is a secret, the result is also a secret.

## Declaration

```yaml
fn::join: [delimiter, values ]
```

### Parameters

| Property    | Type         | Description                                                       |
|-------------|--------------|-------------------------------------------------------------------|
| `delimiter` | string       | The delimiter to use when joining values
| `values`    | List<string> | The list of strings to join

### Returns

The elements of `values` joined by `delimiter`.

## Example

### Definition

```yaml
values:
  list-of-strings:
    - one
    - two
    - three
  joined:
    fn::join: [", ", ${list-of-strings} ]
```

### Evaluated result

```json
{
  "list-of-strings": ["one",
    "two",
    "three"
  ],
  "joined": "one, two, three"
}
```

