Lingo Dictionary > G-K > getLast() |  |

getLast()

Syntax

    list.getLast()
    getLast(list)

Description

List function; identifies the last value in a linear or property list specified by `list`.

Example

This statement identifies the last item, 22, in the list Answers, which consists of [10, 12, 15, 22]:

    put Answers.getLast()

Example

This statement identifies the last item, 850, in the list Bids, which consists of [#Gee:750, #Kayne:600, #Ohashi:850]:

    put Bids.getLast()