Saltar al contenido principal

Table.IsEmpty

Indica si la tabla contiene alguna fila.

Syntax​

Table.IsEmpty(
table as table
) as logical

Remarks​

Indica si la table contiene alguna fila. Devuelve true si no hay filas (es decir, si la tabla está vacía), false en caso contrario.

Examples​

Example #1​

Determinar si la tabla está vací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​

Determinar si la tabla ({}) está vacía.

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

Result:

true

Category​

Table.Information