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.

Leave a Reply

Be the First to Comment!

avatar