INPUT /  OUTPUT /  LANGUAGE





onPull field

Code field

Code carried out when a field's contents are pulled.

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 .pull, which generates the field's contents and empties it.

The code takes the place of the usual pull: the field isn't emptied, and its onClear and onSet code aren't carried out. Whatever the code generates is what .pull generates.

See also