I'm creating a trigger on the user object which is supposed to do a certain action if a checkbox is checked.
trigger Penalizacion_Memo on User (before update) {
for (user us : trigger.new){
if (us.MEMO__c==TRUE){
Decimal Cambio_Porcentual = -0.2;
Penalizacion_Porcentual_Logica.Creacion_Tareas_Porcentual(Cambio_Porcentual, us.Id);
}
}
}
My question is if another update is made to the user record and the MEMO checkbox is still checked would that still fire the tigger? I think yes and if so what can I do for it to trigger only when the specific change is made?