Adding guard conditions in interaction operands

In sequence diagrams, a guard condition is created automatically and appears in edit mode when you create a combined fragment. You can also manually add a guard condition in an interaction operand that does not have an existing guard condition.

To add a guard condition in an interaction operand:
  1. Open a sequence diagram that contains at least one combined fragment.
  2. In the interaction frame, right-click an interaction operand that does not have a guard condition; then click Interaction Operand > Add a guard condition.
Note: In a loop combined fragment, you can edit the guard condition using the textual syntax [ ‘(‘ <minint> [, <maxint> ] ’)’ ], where minit and maxint are non-negative integers, and state the minimum and maximum number of times that a loop can occur.

Parent topic: Adding interaction operands to combined fragments

Related concepts
Interaction operands
Guard conditions

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.