Example:

The above code will loop through the ds_grid indexed in the
variable "grid" and if the value found in any specific cell is
equal to 1, it will then create an instance of "obj_Wall" at the
appropriate position within the room.