You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

nth()

Usage

nth(collection, index)

Description
Returns the element with the given index from the given collection. This method is often used in conjunction with find() to return an element of the result list. See also find(), first() and last().

Example

${nth(find('User'), 2)}

results in

f02e59a47dc9492da3e6cb7fb6b3ac25

Search results for "nth()"

nth()

Returns the element with the given index from the given collection. This method is often used in conjunction with find() to return an element of the result list. See also find(), first() and last().

nth(collection, index)