Table.IsEmpty
指示表是否包含任何行。
Syntax
Table.IsEmpty(
table as table
) as logical
Remarks
指示 table 是否包含任何行。如果没有行(也即表为空),则返回 true; 否则,返回 false。
Examples
Example #1
确定表是否为空。
Table.IsEmpty(
Table.FromRecords({
[CustomerID = 1, Name = "Bob", Phone = "123-4567"],
[CustomerID = 2, Name = "Jim", Phone = "987-6543"],
[CustomerID = 3, Name = "Paul", Phone = "543-7890"]
})
)
Result:
false
Example #2
确定表 ({}) 是否为空。
Table.IsEmpty(Table.FromRecords({}))
Result:
true
Category
Table.Information