Table.IsEmpty
Sintaksis
Table.IsEmpty(table as table) as logical
Tentang
Menunjukkan apakah table
berisi baris apa pun. Mengembalikan true
jika tidak ada baris (yaitu tabel kosong), false
sebaliknya.
Contoh 1
Tentukan apakah tabel kosong.
Penggunaan
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
Contoh 2
Tentukan apakah tabel ({})
kosong.
Penggunaan
Table.IsEmpty(Table.FromRecords({}))
Output
true