SIZE

Returns the number of characters in text or the number of elements in an array.

Syntax 

SIZE(text_or_array)

Examples 

Example 1

Input

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

Formula

SIZE(my_action.message)

Output

"4"
Example 2

Input

{
  "my_action": {
    "message": "north"
  }
}

Formula

SIZE(my_action.message)

Output

"5"
Was this helpful?