INPUT /  OUTPUT /  LANGUAGE






onSet field

Repeatable code field

Code in this field is evaluated whenever a value or set of values is completely assigned to another field.

Applies to...

Vector and scalar fields

Behaviour

Setting a field (such as a tag's primary field) usually triggers the following events in order:

onPush event followed by an onSet event. However, using the push operator to add one or more values to a field only triggers an onPush event. This is because the push operator is often used to progressively assign a large value or set of values before the field is complete. Once the field is complete, the commit operator can be used to indicate this and trigger an onSet event.