combine
Description
Combines elements in a list into a string of text using a delimiter.
Input / Parameter
data
The list of elements to be converted to a string of text.
List
-
-
Yes
delimiter
The separator between each element to form a complete text.
Text
-
-
No
Output
Returns the concatenated string of text.
Text
Example
In this example, we will turn a list into a comma-separated string and print the result in the console.
Step
Drag a
buttoncomponent to the canvas and open theActiontab. Select thepressevent of the button and drag theLog.writefunction to the event flow.Call the function
List.combineinside theLog.writefunction.Then call the function
Conversion.toListinside thedataparameter of theList.combinefunction. Add a "," in thedelimiterparameter.Enter the values of the list to concatenate into a string in the
Conversion.toListfunction.
Result
The console will print the concatenated string of text.
In this example, the value printed will be
3,1,5.
Links
Related Information
See also:
Functions
Last updated