Lists

Last N Elements

4min

Overview

Returns the last N elements from a given list.

Parameters

Inputs

  • input a list (list<object>)
  • input the number of elements to receive (int)
  • sorted (dropdown): unsorted, sorted ascendingly, sorted descendingly

Outputs

  • results (list<object>) - the final list

Important Notes

  • Ensure the input list contains enough elements to retrieve the last N elements.
  • The output list will contain the last N elements based on the specified sorting order, if any.