arraylast(
ARRAY
,
SEPARATOR
)

The arraylast( function extracts the last element of an array.


Parameters

This function has two parameters:

array – the original text array (see Text Arrays).

separator – the separator character for this array.


Description

Extracts the last element of an array.

arraylast("red;green;blue;yellow;orange",";") ☞ orange
arraylast("north/south/east/west","/") ☞ west

See Text Arrays for more information about arrays.

Note: This function is equivalent to:

array(thetext,arraysize(thetext,thesep),thesep)

or:

array(thetext,-1,thesep)

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.