Ex:
var e = entry();
var order = e.field("order")[0];
var totalbefore = order.field("total");
if (totalbefore > 10) {
Block trigger execution, display message and cancel event
}
else {
Instruction;
}
Block the execution of a trigger (cancel the event) based on a condition.
Ex:
var e = entry();
var order = e.field("order")[0];
var totalbefore = order.field("total");
if (totalbefore > 10) {
// Block trigger execution, display message and cancel event
}
else {
// Instruction;
}