# SPLIT function

## `SPLIT` function

| Function Name | Description | Usage | Input parameter | Return value |
|---|---|---|---|---|
| `SPLIT` | Splits a string based on the specified delimiter. | `SPLIT(value)` | A character or a sequence of characters to use to split the string. | A string array. |

## Supported data type


The `SPLIT` function supports the following data type:

- String

## Example 1: Split a string based on the space character


**Sample data** : `$var1$ = "Hello Apigee Integrations"`


**Usage** : `$var1$.SPLIT(" ") `
Split var1 based on the space character.


**Output** : `{"Hello","Apigee","Integrations"}`

## Example 2: Split a string based on the comma character


**Sample data** : `$var1$ = "Test,Integrations"`


**Usage** : `$var1$.SPLIT(",")`
Split var1 based on the comma character.


**Output** : `{"Test","Integrations"}`

## Recommendation

- Learn how to add and configure a [Data Mapping task](https://docs.cloud.google.com/application-integration/docs/configure-data-mapping-task.md.txt)