Or it sounds like you want to do different things ...
# suitescript
j
Or it sounds like you want to do different things if it's a delete so you could do something like
Copy code
if(scriptContext.type === scriptContext.UserEventType.DELETE){
    // code to run when record deleted
}else{
   // code to run when record is created/edited/copied etc
}