Branching with opt and alt

This is a simple sequence diagram example that shows the use of opt and alt.

opt: creates a single branch
if (condition) then
op1()
alt: creates multiple branches
if (condition1) then
op2()
else if (condition2) then
op3()
else
op4()

Import into your Project

Posted by: Steven Guarino

Turn every software project into a successful one.

Try Visual Paradigm for Free! Or learn more about our features.

0 0 vote
Article Rating
guest
0 Comments
Inline Feedbacks
View all comments