使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2023.11)6 重复循环 6 活动图(新语法) kill endif #palegreen:行为; @enduml [参考. QA-265] • detach @startuml if (条件?) then #pink:错误; detach endif #palegreen:行为; @enduml 6.6 重复循环 你可以使用关键字 repeat 和 repeatwhile 进行重复循环。 @startuml while (更多数据?) stop @enduml PlantUML 语言参考指引 (1.2023.11) 115 / 538 6.7 打断循环 [break] 6 活动图(新语法) 你同样可以使用一个全局行为作为 repeat 目标,在返回循环开始时使用 backward 关键字插入一个全 局行为。 @startuml start repeat :foo作为开始标注; :读取数据; backward:这是一个后撤行为; repeat while (更多数据?) stop @enduml [Ref. QA-5826] 6.7 打断循环 [break] 你可以使用 break 关键字跟在循环中的某个行为后面打断循环. @startuml start repeat :测试某事; if (发生错误?) then (没有) #palegreen:好的; PlantUML 语言参考指引0 码力 | 539 页 | 7.74 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.1)145 5.4 重复循环 5 活动图 (新语法) 5.4 重复循环 你可以使用关键字 repeat 和 repeatwhile 进行重复循环。 @startuml start repeat :read data; :generate diagrams; repeat while (more data?) stop @enduml 5.5 while 循环 可以使用关键字 while while 和 end while 进行 while 循环。 @startuml start while (data available?) :read data; :generate diagrams; endwhile stop @enduml PlantUML 语言参考指引 (1.2019.1) 61 / 145 5.6 并行处理 5 活动图 (新语法) 还可以在关键字 endwhile . . . . . . . . . . . . . . . . 60 5.4 重复循环 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 5.5 while 循环 . . . . . . . . . . . . . . . . . . . . . .0 码力 | 146 页 | 1.91 MB | 1 年前3
PlantUML 1.2019.3 语言参考指引(nothing) :Text else; PlantUML 语言参考指引 (1.2019.3) 64 / 156 5.4 重复循环 5 活动图 (新语法 ) endif stop @enduml 5.4 重复循环 你可以使用关键字 repeat 和 repeatwhile 进行重复循环。 @startuml start repeat :read data; :generate diagrams; diagrams; repeat while (more data?) stop @enduml 5.5 while 循环 可以使用关键字 while 和 end while 进行 while 循环。 @startuml start PlantUML 语言参考指引 (1.2019.3) 65 / 156 5.6 并行处理 5 活动图 (新语法 ) while (data available?) :read . . . . . . . . . . . . . . . . 64 5.4 重复循环 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 5.5 while 循环 . . . . . . . . . . . . . . . . . . . . . .0 码力 | 157 页 | 1.78 MB | 1 年前3
PlantUML 1.2019.2 语言参考指引(nothing) :Text else; PlantUML 语言参考指引 (1.2019.2) 64 / 156 5.4 重复循环 5 活动图 (新语法 ) endif stop @enduml 5.4 重复循环 你可以使用关键字 repeat 和 repeatwhile 进行重复循环。 @startuml start repeat :read data; :generate diagrams; diagrams; repeat while (more data?) stop @enduml 5.5 while 循环 可以使用关键字 while 和 end while 进行 while 循环。 @startuml start PlantUML 语言参考指引 (1.2019.2) 65 / 156 5.6 并行处理 5 活动图 (新语法 ) while (data available?) :read . . . . . . . . . . . . . . . . 64 5.4 重复循环 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 5.5 while 循环 . . . . . . . . . . . . . . . . . . . . . .0 码力 | 157 页 | 1.78 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.6)(nothing) :Text else; PlantUML 语言参考指引 (1.2019.6) 65 / 173 5.4 重复循环 5 活动图 (新语法 ) endif stop @enduml 5.4 重复循环 你可以使用关键字 repeat 和 repeatwhile 进行重复循环。 @startuml start repeat :read data; :generate diagrams; diagrams; repeat while (more data?) stop @enduml 5.5 while 循环 可以使用关键字 while 和 end while 进行 while 循环。 @startuml start PlantUML 语言参考指引 (1.2019.6) 66 / 173 5.6 并行处理 5 活动图 (新语法 ) while (data available?) :read . . . . . . . . . . . . . . . . 65 5.4 重复循环 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 5.5 while 循环 . . . . . . . . . . . . . . . . . . . . . .0 码力 | 174 页 | 1.98 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.9)(nothing) :Text else; PlantUML 语言参考指引 (1.2019.9) 65 / 173 5.4 重复循环 5 活动图 (新语法 ) endif stop @enduml 5.4 重复循环 你可以使用关键字 repeat 和 repeatwhile 进行重复循环。 @startuml start repeat :read data; :generate diagrams; diagrams; repeat while (more data?) stop @enduml 5.5 while 循环 可以使用关键字 while 和 end while 进行 while 循环。 @startuml start PlantUML 语言参考指引 (1.2019.9) 66 / 173 5.6 并行处理 5 活动图 (新语法 ) while (data available?) :read . . . . . . . . . . . . . . . . 65 5.4 重复循环 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 5.5 while 循环 . . . . . . . . . . . . . . . . . . . . . .0 码力 | 174 页 | 2.00 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2019.4)(nothing) :Text else; PlantUML 语言参考指引 (1.2019.4) 64 / 164 5.4 重复循环 5 活动图 (新语法 ) endif stop @enduml 5.4 重复循环 你可以使用关键字 repeat 和 repeatwhile 进行重复循环。 @startuml start repeat :read data; :generate diagrams; diagrams; repeat while (more data?) stop @enduml 5.5 while 循环 可以使用关键字 while 和 end while 进行 while 循环。 @startuml start PlantUML 语言参考指引 (1.2019.4) 65 / 164 5.6 并行处理 5 活动图 (新语法 ) while (data available?) :read . . . . . . . . . . . . . . . . 64 5.4 重复循环 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 5.5 while 循环 . . . . . . . . . . . . . . . . . . . . . .0 码力 | 165 页 | 1.89 MB | 1 年前3
PlantUML 1.2020.22 语言参考指引73 / 294 5.5 重复循环 5 活动图 (新语法) [Ref. QA-265] • detach @startuml if (condition?) then #pink:error; detach endif #palegreen:action; @enduml 5.5 重复循环 你可以使用关键字 repeat 和 repeatwhile 进行重复循环。 @startuml start while 循环 5 活动图 (新语法) break endif ->NOK; :Alert "Error with long text"; repeat while (Something went wrong with long text?) is (yes) ->no; :Alert "Sucess"; stop @enduml [Ref. QA-6105] 5.7 while 循环 可以使用关键字 可以使用关键字 while 和 end while 进行 while 循环。 @startuml start while (data available?) :read data; :generate diagrams; endwhile stop @enduml PlantUML 语言参考指引 (1.2020.22) 76 / 294 5.8 并行处理 5 活动图 (新语法) 还可以在关键字0 码力 | 295 页 | 3.08 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2020.23)84 / 306 5.5 重复循环 5 活动图 (新语法) [Ref. QA-265] • detach @startuml if (condition?) then #pink:error; detach endif #palegreen:action; @enduml 5.5 重复循环 你可以使用关键字 repeat 和 repeatwhile 进行重复循环。 @startuml start while 循环 5 活动图 (新语法) break endif ->NOK; :Alert "Error with long text"; repeat while (Something went wrong with long text?) is (yes) ->no; :Alert "Sucess"; stop @enduml [Ref. QA-6105] 5.7 while 循环 可以使用关键字 可以使用关键字 while 和 end while 进行 while 循环。 @startuml start while (data available?) :read data; :generate diagrams; endwhile stop @enduml PlantUML 语言参考指引 (1.2020.23) 87 / 306 5.8 并行处理 5 活动图 (新语法) 还可以在关键字0 码力 | 307 页 | 3.17 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2021.2)96 / 380 6.5 重复循环 6 活动图 (新语法) [Ref. QA-265] • detach @startuml if (condition?) then #pink:error; detach endif #palegreen:action; @enduml 6.5 重复循环 你可以使用关键字 repeat 和 repeatwhile 进行重复循环。 @startuml start (Something went wrong?) then (no) #palegreen:OK; break PlantUML 语言参考指引 (1.2021.2) 98 / 380 6.7 while 循环 6 活动图 (新语法) endif ->NOK; :Alert "Error with long text"; repeat while (Something went wrong with long (no) ->//merged step//; :Alert "Sucess"; stop @enduml [Ref. QA-6105] 6.7 while 循环 可以使用关键字 while 和 end while 进行 while 循环。 @startuml start while (data available?) :read data; :generate diagrams; endwhile0 码力 | 381 页 | 4.05 MB | 1 年前3
共 12 条
- 1
- 2













