Path: blob/main/files/en-us/web/xpath/functions/last/index.md
6546 views
------{{ XsltRef() }}
The last function returns a number equal to the context size from the expression evaluation context.
Syntax
Returns
An integer equal to the context size from the expression evaluation context.
Notes
This is often used with the position() function to determine if a particular node is the last in a node-set.
Defined
Gecko support
Supported.