-
Notifications
You must be signed in to change notification settings - Fork 24
Split
Miriam McMahon edited this page Apr 27, 2023
·
6 revisions
Splits the string contents of a variable or a string into substrings based on the delimiter characters supplied.
Parameter Name | Description | Type | Resolved Type | Required |
---|---|---|---|---|
DelimiterChars | A character array that identifies the delimiter(s) to use. If empty, the Source string will be the first (and only) entry in the resulting array | Array | Array | No |
Source | The string or variable containing a string to be split | Value | String | Yes |
ResultVariableName | The name of the array variable that will be created | String | String | Yes |
IsSecret | Use this to suppress logging if the variable might contain sensitive data. Default= false. | Boolean | Boolean | No |
RemoveEmptyEntries | If true, remove any empty entries from the resulting array | Boolean | Boolean | No |
Example:
{
"Split": {
"DelimiterChars": [ "." ],
"Source": "%Address%",
"ResultVariableName": "SplitAddress",
"RemoveEmptyEntries": true
}
},
{
"SetItem": {
"Name": "AddressByteThree",
"Value": "%{SplitAddress[3]}%"
}
}