Table of contents
TOC
Collapse the table of content
Expand the table of content

List.Last

Owen Duncan|Last Updated: 4/19/2018

About

Returns the last set of items in the list by specifying how many items to return or a qualifying condition provided by countOrCondition.

List.Last(list as list, optional defaultValue as any) as any  

Arguments

ArgumentDescription
listThe List to check.
optional defaultValueDefault value if list is empty.

Remarks

  • If a number is specified, up to that many items are returned.

  • If a condition is specified, all items are returned that initially meet the condition. Once an item fails the condition, no further items are considered.

Examples

List.Last({1, 2, 3}) equals 3  
© 2018 Microsoft