last()

Synopsis

Returns the last element in list . If list is empty, NoValue is returned.

Syntax

last ( list As List ) As Any 
Argument Type Description
list List Original list .

Example 1

Intent >last({ "a", "b", "c", "d"}) 
--> "d" 

Example 2

Intent >last({}) 
--> NoValue