Skip to content

Commit c6e33dc

Browse files
authored
Merge pull request #173927 from SamaraSoucy-MSFT/patch-27
Add an example to split() function when delimiter is not found
2 parents 069192e + b685808 commit c6e33dc

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

articles/logic-apps/workflow-definition-language-functions-reference.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3817,7 +3817,7 @@ split('<text>', '<delimiter>')
38173817
| [<*substring1*>,<*substring2*>,...] | Array | An array that contains substrings from the original string, separated by commas |
38183818
||||
38193819

3820-
*Example*
3820+
*Example 1*
38213821

38223822
This example creates an array with substrings from the specified
38233823
string based on the specified character as the delimiter:
@@ -3828,6 +3828,16 @@ split('a_b_c', '_')
38283828

38293829
And returns this array as the result: `["a","b","c"]`
38303830

3831+
*Example 2*
3832+
3833+
This example creates an array with a single element when no delimiter exists in the string:
3834+
3835+
```
3836+
split('a_b_c', ' ')
3837+
```
3838+
3839+
And returns this array as the result: `["a_b_c"]`
3840+
38313841
<a name="startOfDay"></a>
38323842

38333843
### startOfDay

0 commit comments

Comments
 (0)