Skip to main content

Table.IsEmpty

Nurodoma, ar lentelėje yra eilučių.

Syntax

Table.IsEmpty(
table as table
) as logical

Remarks

Nurodoma, ar table yra eilučių. Pateikiama true, jei eilučių nėra (t. y. lentelė yra tuščia); priešingu atveju pateikiama false.

Examples

Example #1

Nustatykite, ar lentelė yra tuščia.

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

Nustatykite, ar lentelė ({}) yra tuščia.

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

Result:

true

Category

Table.Information