A. ifn( x )

Read(118) Label: sequence, first non-null member,

Description:

Compute x with each member of the sequence and return the first non-null member of the new sequence.

Syntax:

A.ifn(x)

Equivalent to A.(x).ifn()

Note:

The function loops through members of sequence A to compute expression x and return the first non-null member of the new sequence.

Parameters:

A

A sequence

x

Generally an expression of a single field name, or a legal expression composed of multiple field names

Return value:

The first non-null member of the new sequence

Example:

 

A

 

1

=demo.query("select * from EMPLOYEE")

 

2

=A1.ifn(SALARY)

Return the first non-null value of SALARY

3

=A1.(SALARY+100).ifn()

Add 100 to the salary of each employee and return the salary of the first employee

Related functions:

  A.ifn()