I've called my variable to track the loss 'Current_loss' and set this to zero with a 'Global' attribute at the top of the triggers and to execute 'one time only'