PlantUMLアクティビティ図 while と repeat

while文

@startuml
start
:処理A;
while (条件1) is (Yes)
	:処理B;
endwhile (No)
:処理C;
end
@enduml

while文でbreak

@startuml
start
:処理A;
while (条件1) is (Yes)
	:処理B;
	if (条件2) then (no)
      break
    endif
endwhile (No)
:処理C;
end
@enduml

repeat文

@startuml
start
:処理A;
repeat:処理B;
	:処理C;
repeat while(条件1) is (No)
:処理D; 
end
@enduml


repeat文(処理してから戻る)

@startuml
start
:処理A;
repeat:処理B;
	:処理C;
backward :処理;
repeat while(条件1) is (No)
:処理D;
end
@enduml


repeat文(break)

@startuml
start
repeat
  :処理A;
    if (条件1) then (no)
      #palegreen:処理B;
      break
    endif
    ->Yes;
    :処理C;
repeat while (条件2) is (yes) not (no)
->//ループ終了//;
:処理D;
stop
@enduml