clear

action

Syntax
clear shelf


Purpose

You can use clear to remove all the items from a shelf:

  global integer foo variable initial {1,2,3,4,5}
  
  process
     clear foo

You can clear several shelves at once, as follows:

  clear foo & bar & baz

This function is not allowed on shelves with a fixed size, or on shelves currently the subject of a repeat over.