Clear Grid Icon Clear Grid

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 Action

Arguments:

ArgumentDescription
GridThe index (stored in a variable) of the grid to clear
ValueThe value to clear the grid to

 

Example:

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