Skip to main content

Table.IsEmpty

Norāda, vai tabulā ir ietvertas jebkādas rindas.

Syntax

Table.IsEmpty(
table as table
) as logical

Remarks

Norāda, vai table ietver jebkādas rindas. Tiek atgriezta vērtība true, ja nav nevienas rindas (piemēram, ja tabula ir tukša); pretējā gadījumā tiek atgriezta vērtība false.

Examples

Example #1

Nosakiet, vai tabula ir tukša.

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

Nosakiet, vai tabula ({}) ir tukša.

Table.IsEmpty(Table.FromRecords({}))

Result:

true

Category

Table.Information