Skip to main content
Version: v0.18.0

ArrayLast

Alias:ArrayLast, Last, GetLastItem

Output:T

Gets the last element of an array or entity stream

ParameterTypeRequiredPositionSummary
Array
In
array<T>✔1The array to get the last element of

Examples​

Example 1​

SCL​

ArrayLast [1,2,3]

Expected Output​

3

Example 2​

SCL​

ArrayLast ['a', 'b', 'c']

Expected Output​

c

Example 3​

SCL​

ArrayLast [('a': 1), ('a': 2), ('a': 3)]

Expected Output​

('a': 3)

Example 4​

SCL​

GetLastItem In: [1,2,3]

Expected Output​

3