본문으로 건너뛰기

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