List.Single

About

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

Syntax

List.Single(list as list) as any  

Arguments

Argument Description
list The List to check.

Examples

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