Guard is similar to Event Action, i.e, it runs simultaneously with the execution of an event. In addition, a guard can prevent the occurrence of the event.