Please enable JavaScript to view this site.

Altova FlowForce Server 2020 Advanced Edition

Returns the specified item from the list. The index is zero-based. Fails if the index is out of bounds.

 

Signature

nth(list:list, index:number) -> item

 

Parameters

Name

Type

Description

list

list

Specifies the input list.

index

number

Specifies the zero-based index of the item to return.

 

Examples

The following expression returns "b":

 

nth(list('a', 'b', 'c'), 1)

© 2020 Altova GmbH