PickLast (open)

Pick the last element of an array

Syntax

// Core function, no LOADLIB necessary

VARIANT FUNCTION PickLast(VARIANT arr)

Parameters

VARIANT arr

Array to grab an alement of, may not be a VARIANT ARRAY

Return value

VARIANT

The last element of the array, or the default value of the array's type if the array is empty