Parameters
NameTypeDescription
recordsys.data.RecordThis is the current record affected by the event.
oldRecordsys.data.RecordIf 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();