使用:进行标记,以;结束。
plantuml
@startuml
:Hello;
:My **world**;
@enduml@startuml
:Hello;
:My **world**;
@enduml开始、结束
- start
- stop / end
plantuml
start
:起床;
:吃饭;
:睡觉;
stopstart
:起床;
:吃饭;
:睡觉;
stop条件判断
if (条件 A) then (yes)
:文本 1;
elseif (条件 B) then (yes)
:文本 2;
stop
elseif (条件 C) then (yes)
:文本 3;
elseif (条件 D) then (yes)
:文本 4;
else (nothing)
:文本 else;
endifif (条件 A) then (yes)
:文本 1;
elseif (条件 B) then (yes)
:文本 2;
stop
elseif (条件 C) then (yes)
:文本 3;
elseif (条件 D) then (yes)
:文本 4;
else (nothing)
:文本 else;
endifplantuml
start
if (已登录) then(yes)
:进入系统;
else(no)
:登录;
:进入系统;
endif
endstart
if (已登录) then(yes)
:进入系统;
else(no)
:登录;
:进入系统;
endif
end