How to make break points in while loops?

0 votes
asked Jul 12 in Question / help by lockywolf (280 points)

I am redrawing the following diagram

http://imgur.com/a/K3GcXEz

The while loop has one end (Reduce Inventory) and one break point (Item Found?).

How do I implement it in PlantUML?

My attempt is the following:

:hello;
while (yes)
    :do a;
    if (Question) then (Answer 1)
      :do answer 1;
    else (Answer 2)
      endwhile
    endif
endwhile (no)

1 Answer

0 votes
answered Jul 13 by diagramBob (220 points)
...