The UML Modeling feature lets you add to Activity Edges in an Activity diagram.
To add guard conditions to an Activity Edge:
In the Diagram editor, right-click the target Activity Edge and choose Labels > Show Guard Condition.
An [unnamed] notation appears on the edge to prompt you for the expression.
Inside the notation, type the expression of the guard condition and press Enter.