Clear Grid


Description

With this action you can clear a grid data structure to a single value (each cell within the grid will be set to the value given). You supply the variable that holds the grid index (as returned by the action Create Grid) and then give the value to clear the grid to.


Action Syntax:

Clear Grid Syntax


Arguments:

Argument Description
Grid The index (stored in a variable) of the grid to clear
Value The value to clear the grid to


Example:

Clear Grid Example
The above action block code clears the given grid data structure to hold 0 in each cell if a global variable is less than or equal to 0.