_@FIRST

_@FIRST function is used in a Logic Template to return the first in a list of values that is non-zero.

Returns

Description

The first non-zero value in the list of arguments.

Format
_@FIRST
( val_1, val_2 [, val_3 [ ... ]]);

Argument

Description

val_1

The first value to be tested.

val_2

The second value to be tested.

val_3

The third value to be tested.

...

Continue for additional values.

Example
//Return the first recorded date or todays date if no date available

DATE = _@FIRST( PubDate, FileDate, ReleaseDate, "today" );