使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.1)50 / 145 4.4 分支 4 活动图 • -left-> • -up-> @startuml (*) -up-> "First Activity" -right-> "Second Activity" --> "Third Activity" -left-> (*) @enduml 4.4 分支 你可以使用关键字 if/then/else 创建分支。 @startuml (*) PlantUML 语言参考指引 (1.2019.1) 51 / 145 4.5 更多分支 4 活动图 --> "run command" Endif -->(*) @enduml 4.5 更多分支 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 if 关键字进行连接。 还可以嵌套定义分支。 @startuml (*) --> if "Some Test" then -->[true] PlantUML 语言参考指引 (1.2019.1) 59 / 145 5.3 条件语句 5 活动图 (新语法) 5.3 条件语句 在图示中可以使用关键字 if,then 和 else 设置分支测试。标注文字则放在括号中。 @startuml start if (Graphviz installed?) then (yes) :process all\ndiagrams; else0 码力 | 146 页 | 1.91 MB | 1 年前3
PlantUML 1.2019.3 语言参考指引4.4 分支 4 活动图 • -right-> or -> • -left-> • -up-> @startuml (*) -up-> "First Activity" -right-> "Second Activity" --> "Third Activity" -left-> (*) @enduml 4.4 分支 你可以使用关键字 if/then/else 创建分支。 @startuml 156 4.5 更多分支 4 活动图 @startuml (*) --> "check input" If "input is verbose" then --> [Yes] "turn on verbosity" --> "run command" else --> "run command" Endif -->(*) @enduml 4.5 更多分支 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 if 关键字进行连接。 还可以嵌套定义分支。 @startuml (*) --> if "Some Test" then -->[true] "activity 1" if "" then -> "activity 3" as a3 else if "Other test" then -left-> "activity 5" else --> "activity 6"0 码力 | 157 页 | 1.78 MB | 1 年前3
PlantUML 1.2019.2 语言参考指引4.4 分支 4 活动图 • -right-> or -> • -left-> • -up-> @startuml (*) -up-> "First Activity" -right-> "Second Activity" --> "Third Activity" -left-> (*) @enduml 4.4 分支 你可以使用关键字 if/then/else 创建分支。 @startuml 156 4.5 更多分支 4 活动图 @startuml (*) --> "check input" If "input is verbose" then --> [Yes] "turn on verbosity" --> "run command" else --> "run command" Endif -->(*) @enduml 4.5 更多分支 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 if 关键字进行连接。 还可以嵌套定义分支。 @startuml (*) --> if "Some Test" then -->[true] "activity 1" if "" then -> "activity 3" as a3 else if "Other test" then -left-> "activity 5" else --> "activity 6"0 码力 | 157 页 | 1.78 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.6)4.4 分支 4 活动图 • -right-> or -> • -left-> • -up-> @startuml (*) -up-> "First Activity" -right-> "Second Activity" --> "Third Activity" -left-> (*) @enduml 4.4 分支 你可以使用关键字 if/then/else 创建分支。 @startuml 173 4.5 更多分支 4 活动图 @startuml (*) --> "check input" If "input is verbose" then --> [Yes] "turn on verbosity" --> "run command" else --> "run command" Endif -->(*) @enduml 4.5 更多分支 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 if 关键字进行连接。 还可以嵌套定义分支。 @startuml (*) --> if "Some Test" then -->[true] "activity 1" if "" then -> "activity 3" as a3 else if "Other test" then -left-> "activity 5" else --> "activity 6"0 码力 | 174 页 | 1.98 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.9)4.4 分支 4 活动图 • -right-> or -> • -left-> • -up-> @startuml (*) -up-> "First Activity" -right-> "Second Activity" --> "Third Activity" -left-> (*) @enduml 4.4 分支 你可以使用关键字 if/then/else 创建分支。 @startuml 173 4.5 更多分支 4 活动图 @startuml (*) --> "check input" If "input is verbose" then --> [Yes] "turn on verbosity" --> "run command" else --> "run command" Endif -->(*) @enduml 4.5 更多分支 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 if 关键字进行连接。 还可以嵌套定义分支。 @startuml (*) --> if "Some Test" then -->[true] "activity 1" if "" then -> "activity 3" as a3 else if "Other test" then -left-> "activity 5" else --> "activity 6"0 码力 | 174 页 | 2.00 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.4)4.4 分支 4 活动图 • -right-> or -> • -left-> • -up-> @startuml (*) -up-> "First Activity" -right-> "Second Activity" --> "Third Activity" -left-> (*) @enduml 4.4 分支 你可以使用关键字 if/then/else 创建分支。 @startuml 164 4.5 更多分支 4 活动图 @startuml (*) --> "check input" If "input is verbose" then --> [Yes] "turn on verbosity" --> "run command" else --> "run command" Endif -->(*) @enduml 4.5 更多分支 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 if 关键字进行连接。 还可以嵌套定义分支。 @startuml (*) --> if "Some Test" then -->[true] "activity 1" if "" then -> "activity 3" as a3 else if "Other test" then -left-> "activity 5" else --> "activity 6"0 码力 | 165 页 | 1.89 MB | 1 年前3
PlantUML 1.2020.22 语言参考指引4.4 分支 4 活动图 • -right-> or -> • -left-> • -up-> @startuml (*) -up-> "First Activity" -right-> "Second Activity" --> "Third Activity" -left-> (*) @enduml 4.4 分支 你可以使用关键字 if/then/else 创建分支。 @startuml 294 4.5 更多分支 4 活动图 @startuml (*) --> "check input" If "input is verbose" then --> [Yes] "turn on verbosity" --> "run command" else --> "run command" Endif -->(*) @enduml 4.5 更多分支 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 if 关键字进行连接。 还可以嵌套定义分支。 @startuml (*) --> if "Some Test" then -->[true] "activity 1" if "" then -> "activity 3" as a3 else if "Other test" then -left-> "activity 5" else --> "activity 6"0 码力 | 295 页 | 3.08 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2020.23)4.4 分支 4 活动图 • -right-> or -> • -left-> • -up-> @startuml (*) -up-> "First Activity" -right-> "Second Activity" --> "Third Activity" -left-> (*) @enduml 4.4 分支 你可以使用关键字 if/then/else 创建分支。 @startuml 306 4.5 更多分支 4 活动图 @startuml (*) --> "check input" If "input is verbose" then --> [Yes] "turn on verbosity" --> "run command" else --> "run command" Endif -->(*) @enduml 4.5 更多分支 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 if 关键字进行连接。 还可以嵌套定义分支。 @startuml (*) --> if "Some Test" then -->[true] "activity 1" if "" then -> "activity 3" as a3 else if "Other test" then -left-> "activity 5" else --> "activity 6"0 码力 | 307 页 | 3.17 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2021.2)2021.2) 84 / 380 5.4 分支 5 活动图 • -up-> @startuml (*) -up-> "First Activity" -right-> "Second Activity" --> "Third Activity" -left-> (*) @enduml 5.4 分支 你可以使用关键字 if/then/else 创建分支。 @startuml (*) --> 2) 85 / 380 5.5 更多分支 5 活动图 --> [Yes] "turn on verbosity" --> "run command" else --> "run command" Endif -->(*) @enduml 5.5 更多分支 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 if 关键字进行连接。 还可以嵌套定义分支。 @startuml (*) --> 语言参考指引 (1.2021.2) 94 / 380 6.3 条件语句 6 活动图 (新语法 ) end @enduml 6.3 条件语句 在图示中可以使用关键字 if,then 和 else 设置分支测试。标注文字则放在括号中。 @startuml start if (Graphviz installed?) then (yes) :process all\ndiagrams; else (no)0 码力 | 381 页 | 4.05 MB | 1 年前3
PlantUML 1.2021.1 语言参考指引2021.1) 84 / 375 5.4 分支 5 活动图 • -up-> @startuml (*) -up-> "First Activity" -right-> "Second Activity" --> "Third Activity" -left-> (*) @enduml 5.4 分支 你可以使用关键字 if/then/else 创建分支。 @startuml (*) --> 1) 85 / 375 5.5 更多分支 5 活动图 --> [Yes] "turn on verbosity" --> "run command" else --> "run command" Endif -->(*) @enduml 5.5 更多分支 默认情况下,一个分支连接上一个最新的活动,但是也可以使用 if 关键字进行连接。 还可以嵌套定义分支。 @startuml (*) --> 语言参考指引 (1.2021.1) 94 / 375 6.3 条件语句 6 活动图 (新语法 ) end @enduml 6.3 条件语句 在图示中可以使用关键字 if,then 和 else 设置分支测试。标注文字则放在括号中。 @startuml start if (Graphviz installed?) then (yes) :process all\ndiagrams; else (no)0 码力 | 376 页 | 4.00 MB | 1 年前3
共 13 条
- 1
- 2













