Trigger Context Variables
All triggers define implicit variables that allow developers to access runtime context. These variables are contained in the System.Trigger class Let us summarize all the Trigger context variable in form of a table: Context Variable It's Usage isExecuting Returns true if the current context for the Apex code is a trigger, not a Visualforce page, a Web service, or a executeanonymous() API call. isInsert Returns true if this trigger was fired due to an insert operation, from the Salesforce user interface, Apex, or the API. isUpdate Returns true if this trigger was fired due to an update operation, from the Salesforce user interface, Apex, or the API. isDelete Returns true if this trigger was fired due to a delete operation, from the Salesforce user interface, Apex, or the API. isBefore Returns true if this trigger was fired before any record was saved. isAfter...