Parameters
| Name | Type | Description |
|---|
| record | sys.data.Record | This is the current record affected by the event. |
| oldRecord | sys.data.Record | If the event is of type On record change, On action performed or On condition met, this variable
will hold the version of the record before the event happened. |
Returns
boolean - You should return
true if the action has to be executed,
false otherwise.
Samples
//only match the event if the field 'type' was modifed
return record.field('type').val() != oldRecord.field('type').val();