isEmpty
The isEmpty
method returns a boolean value that is true
if the table is empty (i.e., size() == 0
), or false
if the table is not empty.
Syntax
source.isEmpty()
Parameters
This method takes no arguments.
Returns
A boolean value that is true
if the table is empty or false
if the table is not empty.
Example
t1 = newTable(
stringCol("Title", "content"),
stringCol("ColumnName", "column_content"),
stringCol("AnotherColumn", "string"),
)
t2 = emptyTable(0)
println t1.isEmpty()
println t2.isEmpty()
- Log