Table.IsEmpty
Indică dacă tabelul conține vreun rând.
Syntax
Table.IsEmpty(
table as table
) as logical
Remarks
Indică dacă table conține vreun rând. Returnează true dacă nu există rânduri (adică, tabelul este necompletat); în caz contrar, returnează false.
Examples
Example #1
Determinați dacă tabelul este necompletat.
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
Determinaţi dacă tabelul ({}) este necompletat.
Table.IsEmpty(Table.FromRecords({}))
Result:
true
Category
Table.Information