INPUT /  OUTPUT /  LANGUAGE





onClear field

Code field

Code carried out when a field is cleared.

Applies to...

Vector fields, including the vector tag.

Sample usage

Behaviour

A code field: holds code to be carried out each time the event happens. Add code after the tag is created with .push.

Carried out by .clear, by the clear tag, by .pull (which empties the field, unless the field has onPull code), and when a new value is assigned to a vector (which clears it before pushing the new values). If there's no onClear code, .clear, the clear tag and .pull carry out the field's onSet code instead.

See also