フィールドの値が変更されるかどうかのテスト
組込みのisAttributeChanged()関数を使用して、現在のトランザクションでフィールドの値が変更されたかどうかをテストできます。
次の例に示すように、変更したステータスを評価するフィールドの名前を指定する単一の文字列引数を取ります:
if (isAttributeChanged('Status')) {
// perform some logic here in light of the fact
// that status has changed in this transaction
}