Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Activity-Beta : Condition of RepeatWhile multi-lines?

0 votes

Hi guys !

Is it possible to have the condition of the REPEATWHILE written on multi-lines as it is possible for the IF? (whitout using '\n')

 

repeat

:Hello world!;

repeatwhile(bool1 is True

AND bool2 is False)

 

possible with the if structure :

if(beginning of

the day)

:say hello!;

else

endif

 result here

Thank you!

 

 

asked May 22, 2015 in Wanted features by MAV (580 points)

3 Answers

0 votes
Good idea!

This has not been very tested, but should be working with last beta:

https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Thanks for the suggestion!
answered May 25, 2015 by plantuml (125,190 points)
Thank you !

Same kind of question : is it possible to have the IS-label of the repeatwhile written on multi-lines?

 repeat
    :Hello world!;
repeatwhile(a==1
and b ==2)is(The condition
is True)
-> The condition
is False;

If it is possible, I would have the same question for the THEN-label of the IF structure =D
This has been implemented in version 8026.
If you have other request on multi-lines, please post them here.
Thank you guys!

By the way, the multi-lines is possible with the IF but not with the ELSEIF, is it possible to fix it?
0 votes
By the way, the multi-lines is possible with the IF but not with the ELSEIF, is it possible to fix it?
answered Jul 2, 2015 by MAV (580 points)
This should be ok in the last beta:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Example:
@startuml
start
if (some test) then (yes)
    :foo1;
elseif (no on
several lines)
    :foo2;
endif
@enduml

Is it ok for you ?
0 votes

Hi guys,

I have tested the repeatwhile structure with the last version and I have noted some bugs :

Bug 1 : if the condition of the repeatwhile is on several lines, and the label is on only one line : the diagram is generated but contains mistakes. Please see the following plantuml text and the generated diagram here :

@STARTUML
START
REPEAT
:hello world!;
repeatwhile(condition
on several lines)is(TRUE)
->[FALSE];
STOP
@ENDUML

Bug 2 : if the condition of the repeatwhile is written on only one line and the label is written on several lines, an error is generated. Please see the following plantuml text and the generated error here :

@STARTUML
START
REPEAT
:hello world!;
repeatwhile(condition on only one line)is(true or
several lines)
->[FALSE];
STOP
@ENDUML

 

Thank you very much for your support!

answered Aug 20, 2015 by MAV (580 points)
Thanks for the bug report.
This has been fixed in last beta
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Regards,
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...