Guard condition (property)
This property specifies a condition that must be met for an Event Action Block to trigger.
By default, the Guard Condition box is blank.
On a State Diagram, the syntax of an Event Action Block is determined by the Trigger Type. If the Guard Condition is included, it appears in brackets. For example, the syntax of a Call Trigger Type is as follows: <operation name>[<guard condition>]/<action>
You use the Code Editor to edit Guard Condition code. For information about the Code Editor, including setting the code language to use, see Overview of the Code Editor.
This property is set on the Options tab of an Event Action Block's Property Pages. You can click the Edit button and change the code in the Code Editor window. In addition, you can add model object references to the Guard Condition code.
This property is not available when the Trigger Type is set to Entry, Exit or Destroy.
* 
On the Property Pages, the Editor button associated with the Guard Condition box allows you to change the Action in a text window.
The Guard Condition property supports Rich Text, so you can format the text and use model object references.
To change a Guard Condition from the State Diagram, right-click the Event Action Block, point to Edit, and then click Guard Condition.
The following section provides information about the items and diagrams for which Guard Condition is a property. For more information about an item or diagram, click it.
Is property of
Was this helpful?