The "ds_grid_empty" Function

Syntax#

ds_grid_empty(id);
ArgumentTypeDescription
idds_gridThe data structure to check

Description#

Checks whether the specified ds_grid is empty and returns true or false.

caution

This function does not check whether or not the grid exists, and checking a non-existant grid will throw an error.

Example#

var ds = ds_grid_create(1, 0);
if (ds_grid_empty(ds)) {
ds_grid_insert_row(ds, 0, "init");
}