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.

last()

Usage

last(collection)

Description
Returns the last element from the given collection. This method is often used in conjunction with find(). See also first().

Example

${last(find('User'))}

results in

f02e59a47dc9492da3e6cb7fb6b3ac25

Search results for "last()"

last()

Returns the last element from the given collection. This method is often used in conjunction with find(). See also first().

last(collection)