Skip to main content
Version: Next

Last In List

Gets the last element of List

Description

Gets the last element of List.

Example:

  • inputs

    • source = [{ "user": "barney", "age": 36, "active": true },

    { "user": "fred", "age": 40, "active": false },

    { "user": "pebbles", "age": 24, "active": true },

    { "user": "travis", "age": 24, "active": true }]

  • outputs

    • result = { "user": "travis", "age": 24, "active": true }

Inputs

  • Source (Object): The collection to inspect. Could be in the form of List, Array and QueryResult

Outputs

  • Value (Object): The last element
  • Error Flow (Error Flow): Triggered by providing unexpected type of the source