TO_CSV

Convert an array of arrays into CSV-formatted text.

Syntax 

TO_CSV(array_of_arrays)

Usage examples 

Example 1

Input

1
{
2
"my_action": [
3
[
4
"city",
5
"state"
6
],
7
[
8
"Melbourne",
9
"VIC"
10
],
11
[
12
"Sydney",
13
"NSW"
14
],
15
[
16
"New York City",
17
"NY"
18
],
19
[
20
"Los Angeles",
21
"CA"
22
]
23
]
24
}

Formula

TO_CSV(my_action)

Output

"city, state\nMelbourne, VIC\nSydney, NSW\n\"New York City\", NY\n\"Los Angeles\", CA\n"

Example 2

Formula

TO_CSV([[1, 2], [3, 4], [5, 6]])

Output

"1, 2\n3, 4\n5, 6\n"

Sample Actions 

Transform
My Action
Transform
TO_CSV

Select an action to inspect

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?