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

List.First

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

About

Returns the first value of the list or the specified default if empty. Returns the first item in the list, or the optional default value, if the list is empty. If the list is empty and a default value is not specified, the function returns.

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

Arguments

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

Examples

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