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

List.Single

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

About

Returns the single item of the list or throws an Expression.Error if the list has more than one item.

List.Single(list as list) as any  

Arguments

ArgumentDescription
listThe List to check.

Examples

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