REVERSE

Reverses the order of the elements in an array.

Syntax 

REVERSE(array)

Examples 

Example 1

Input

{
  "my_action": {
    "message": [
      "north",
      "south",
      "east",
      "west"
    ]
  }
}

Formula

REVERSE(my_action.message)

Output

[
  "west",
  "east",
  "south",
  "north"
]
Example 2

REVERSE can't directly reverse an individual piece of text, but you can combine it with SPLIT and JOIN to make it work:

Input

{
  "my_action": {
    "message": "edit maps"
  }
}

Formula

JOIN(REVERSE(SPLIT(my_action.message, "")), "")

Output

"spam tide"
Was this helpful?