A preprocessor condition, based on the current plantuml.jar version?

0 votes
asked May 24 in Wanted features by boshka (1,310 points)
edited May 24 by boshka
i'd like to differenciate iuml code based on the PlantUml version used. Is it possible?

such as:

!if %PLANTUML_VERSION% >= 1.2017.12
    <new code>
   <legacy code>

1 Answer

0 votes
answered May 29 by plantuml (134,510 points)

It's not possible in official release, but in last beta:


You can have:

title this is %PLANTUML_VERSION%
alice -> bob : hello
!if %PLANTUML_VERSION% > 1201713
alice -> bob : A
alice -> bob : B

Unfortunately, this is not working with "old" release.

Thanks for the suggestion!

commented May 30 by Serge Wenger Work (5,360 points)

Could you add !if in the PlantUML keyword file generated with -language?

commented May 30 by plantuml (134,510 points)
Sure, thanks for the remind ! :-)