Is it possible to repeat back to the above level from inside a conditional or split?

0 votes
asked Aug 10, 2022 in Question / help by david.thomas (120 points)

Is it possible to repeat back to the level above, from inside a conditional or split block? 

For example:

@startuml nested_repeat

title Nested repeat?
footer Version 2022-08-11

start
' Repeat back here to Step 1
repeat

:Step1;

if (ok?) 
  ' Repeat back to Step 1 from inside condition? or split?
  repeat while (retry <= $limit) is (retry++)
else 
  :Step2;
endif

:Step3;

end

@enduml

URL: https://www.plantuml.com/plantuml/png/TOz1IyL038Jl-HLp47pbyU3jUX6hjB_0WuBtscOnTDkKR4JyzwwrLo-12Pd9DttnmVnpoUJYcV7CnNc2ySQ3TvHKdGrlR4LqHRp6UBdUNq8WserqYvVz5E_3ECCLhyuR0lq543tywj0IIS99vwu10V-Oa4mNo5faOeowJkBrQGSrb2rBnS41XgyFoOoJiTit7fzmasKHRo3bM9xF3N4k309sXjWIryHq8DrLfAgfhwEs_m40

It seems to only return "Cannot find repeat" but perhaps there's some way to do it. 

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...