Leggere in inglese

Condividi tramite


Table.IsEmpty

Sintassi

Table.IsEmpty(table as table) as logical 

Informazioni su

Indica se table contiene righe. Restituisce true se non sono presenti righe, ad esempio se la tabella è vuota, in caso contrario false.

Esempio 1

Determinare se la tabella è vuota.

Utilizzo

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"]
    })
)

Output

false

Esempio 2

Determinare se la tabella ({}) è vuota.

Utilizzo

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

Output

true