FIRST

Returns the first element in an array if an element exists; otherwise, returns a 0.

Format

FIRST (A)

Argument

 
A
An array.

Examples

The following examples illustrate the use of the FIRST function:
 
Function
FIRST ({})
Result
0.0
 
Function
FIRST ({1,2,3})
Result
1