The Set Transition Guard command, accessed on the Diagram ribbon, sets the guard associated with the selected transition on a state transition diagram. The transition guard contains a logical expression that must evaluate to true for the transition to occur. This command allows you to easily change the transition guard attribute directly from the diagram via a prompt dialog without opening the property sheet for the transition.