Is there a way to do an early exit from a loop

+4 votes
asked Feb 8, 2016 in Wanted features by anonymous

It would be great if it was possible to do an early exit out of a loop in activity diagrams (new syntax). There is an early version of goto, but it only works backwards, so it is not so useful for this one.

Something along the lines of (this does not work yet):

:loop over all instances to find a free one
while (instance exists?)
if (free?) then (yes)
:reserve this instance;
:get next instance;

Regards, Ville


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.