Returns the last element of an array if an element exists; otherwise, returns a 0.
Format
LAST (A)
Argument
Examples
The following examples illustrate the use of the LAST function:
Function | LAST({}) |
Result | 0.0 |
Function | LAST({1}) |
Result | 1 |
Function | LAST({1,2,3}) |
Result | 3 |